From 43812138ca661f19f5f747e61ecddb88354765ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Van=20Canneyt?= Date: Mon, 6 Mar 2023 14:58:03 +0100 Subject: [PATCH] * Dotted filenames for package gitlab --- packages/gitlab/namespaced/Api.Gitlab.Client.pas | 3 +++ packages/gitlab/namespaces.lst | 3 +++ packages/gitlab/src/gitlabclient.pas | 7 +++++++ 3 files changed, 13 insertions(+) create mode 100644 packages/gitlab/namespaced/Api.Gitlab.Client.pas create mode 100644 packages/gitlab/namespaces.lst diff --git a/packages/gitlab/namespaced/Api.Gitlab.Client.pas b/packages/gitlab/namespaced/Api.Gitlab.Client.pas new file mode 100644 index 0000000000..ebff3382a4 --- /dev/null +++ b/packages/gitlab/namespaced/Api.Gitlab.Client.pas @@ -0,0 +1,3 @@ +unit Api.Gitlab.Client; +{$DEFINE FPC_DOTTEDUNITS} +{$i gitlabclient.pas} diff --git a/packages/gitlab/namespaces.lst b/packages/gitlab/namespaces.lst new file mode 100644 index 0000000000..df88640f4c --- /dev/null +++ b/packages/gitlab/namespaces.lst @@ -0,0 +1,3 @@ +src/gitlabclient.pas=namespaced/Api.Gitlab.Client.pas +{s*:src/}=namespaced/ +{i+:src/} diff --git a/packages/gitlab/src/gitlabclient.pas b/packages/gitlab/src/gitlabclient.pas index 7acee17b51..d5498a871d 100644 --- a/packages/gitlab/src/gitlabclient.pas +++ b/packages/gitlab/src/gitlabclient.pas @@ -1,12 +1,19 @@ +{$IFNDEF FPC_DOTTEDUNITS} unit gitlabclient; +{$ENDIF FPC_DOTTEDUNITS} {$mode ObjFPC}{$H+} {$modeswitch advancedrecords} interface +{$IFDEF FPC_DOTTEDUNITS} +uses + System.Classes, System.SysUtils, System.IniFiles, FpJson.Data, FpWeb.Client, FpWeb.Client.Http, FpWeb.Http.Protocol; +{$ELSE FPC_DOTTEDUNITS} uses Classes, SysUtils, inifiles, fpjson, fpwebclient, fphttpwebclient, httpprotocol; +{$ENDIF FPC_DOTTEDUNITS} Const LongThrottleSleep = 60 * 1000; // One minute