From b5ff2ee02a10d762b9826d3f8de140466baf3a95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A6titia=20Delvaux?= Date: Tue, 25 Jun 2024 02:01:26 +0200 Subject: [PATCH] Setting some APT sources.list options to the localy created repository. This can then later be leveraged, for example, through a config file such as /etc/apt/preferences.d/99-perfsonar-jq containing: ``` Package: jq libjq1 Pin: release unibuild-snapshot Pin-Priority: 895 ``` ⚧ --- .gitignore | 1 + unibuild/unibuild/libexec/commands/gather | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 9ac3c7b..c8157cf 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ unibuild-work */unibuild-work *~ +.DS_Store diff --git a/unibuild/unibuild/libexec/commands/gather b/unibuild/unibuild/libexec/commands/gather index 9b0eb9b..10e794f 100755 --- a/unibuild/unibuild/libexec/commands/gather +++ b/unibuild/unibuild/libexec/commands/gather @@ -164,10 +164,10 @@ case "${OSINFO_PACKAGING}" in ;; deb) -# This can later be used with the simple APT setup below: +# This can later be used with the simple APT source.list setup below: # deb [trusted=yes] file:/full/path/to/local/unibuild-repo ./ (cd "${REPO}" && apt-ftparchive packages . > Packages) - (cd "${REPO}" && apt-ftparchive release . > Release) + (cd "${REPO}" && apt-ftparchive -o APT::FTPArchive::Release::Origin=Unibuild -o APT::FTPArchive::Release::Suite=unibuild-snapshot -o APT::FTPArchive::Release::Codename=unibuild release . > Release) ;; *)