From 083646e079bddba0fbddf1b2c5e103c551d7e99c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 21 Apr 2023 11:49:29 +0200 Subject: [PATCH] DEB trinity-apt-archive: Add an option with the determination of architecture. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will prevent automatic loading of sources for additional architectures, which may not be available to some distributions. Signed-off-by: Slávek Banko --- debian/_base/metapackages/trinity-apt-archive/debian/control | 2 +- .../debian/distrospecific/repositories/trinity.list | 4 ++-- debian/_base/metapackages/trinity-apt-archive/debian/rules | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/debian/_base/metapackages/trinity-apt-archive/debian/control b/debian/_base/metapackages/trinity-apt-archive/debian/control index 1586bbf1c..37ce190ed 100644 --- a/debian/_base/metapackages/trinity-apt-archive/debian/control +++ b/debian/_base/metapackages/trinity-apt-archive/debian/control @@ -7,7 +7,7 @@ Standards-Version: 3.8.4 Package: trinity-apt-archive Priority: optional -Architecture: all +Architecture: any Depends: apt Pre-Depends: trinity-keyring Description: APT sources list for the Trinity Desktop Environment repository diff --git a/debian/_base/metapackages/trinity-apt-archive/debian/distrospecific/repositories/trinity.list b/debian/_base/metapackages/trinity-apt-archive/debian/distrospecific/repositories/trinity.list index f92f8cc43..8408867d2 100644 --- a/debian/_base/metapackages/trinity-apt-archive/debian/distrospecific/repositories/trinity.list +++ b/debian/_base/metapackages/trinity-apt-archive/debian/distrospecific/repositories/trinity.list @@ -1,4 +1,4 @@ # Trinity repositories -deb http://mirror.ppa.trinitydesktop.org/trinity/deb/trinity-r14.1.x main deps -deb-src http://mirror.ppa.trinitydesktop.org/trinity/deb/trinity-r14.1.x main deps +deb [arch=] http://mirror.ppa.trinitydesktop.org/trinity/deb/trinity-r14.1.x main deps +deb-src [arch=] http://mirror.ppa.trinitydesktop.org/trinity/deb/trinity-r14.1.x main deps diff --git a/debian/_base/metapackages/trinity-apt-archive/debian/rules b/debian/_base/metapackages/trinity-apt-archive/debian/rules index ccd4e20a8..063ee8468 100755 --- a/debian/_base/metapackages/trinity-apt-archive/debian/rules +++ b/debian/_base/metapackages/trinity-apt-archive/debian/rules @@ -4,6 +4,7 @@ include /usr/share/cdbs/1/rules/debhelper.mk VERSION := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2) DISTRIBUTION := $(shell dpkg-parsechangelog | grep ^Distribution: | cut -d' ' -f2) +ARCHITECTURE := $(shell dpkg-architecture -qDEB_HOST_ARCH) # The default gzip compressor has been changed in dpkg >= 1.17.0. deb_default_compress = $(shell LANG=C dpkg-deb --version | head -n1 | \ @@ -33,4 +34,4 @@ clean:: binary-install/trinity-apt-archive:: dh_testdir - sed -i 's|^\(deb[^ ]* [^ ]*\) [^ ]* main|\1 ${DISTRIBUTION} main|g' debian/$(cdbs_curpkg)/etc/apt/sources.list.d/trinity.list + sed -i -e 's||${DISTRIBUTION}|' -e 's||${ARCHITECTURE}|' debian/$(cdbs_curpkg)/etc/apt/sources.list.d/trinity.list