diff options
Diffstat (limited to 'debian/_base/metapackages/trinity-apt-archive/debian/rules')
-rwxr-xr-x | debian/_base/metapackages/trinity-apt-archive/debian/rules | 3 |
1 files changed, 2 insertions, 1 deletions
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>|${DISTRIBUTION}|' -e 's|<arch>|${ARCHITECTURE}|' debian/$(cdbs_curpkg)/etc/apt/sources.list.d/trinity.list |