]> git.proxmox.com Git - debcargo-conf.git/commitdiff
build: Check build deps for the given $DISTRIBUTION
authorRyan Gonzalez <ryan.gonzalez@collabora.com>
Tue, 11 Jan 2022 00:59:52 +0000 (18:59 -0600)
committerRyan Gonzalez <ryan.gonzalez@collabora.com>
Tue, 11 Jan 2022 23:30:43 +0000 (17:30 -0600)
This currently checks unstable's build deps regardless of the
$DISTRIBUTION value, which breaks badly in cases where unstable isn't
available.

Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
build.sh

index 96506357c77ae6465f87d40d311dfee102574cd4..aa03f0c2173aae89b253b3a915a170f72525a6c9 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -110,7 +110,7 @@ check_build_deps() {
        if shouldbuild dpkg-dummy/status /var/cache/apt/pkgcache.bin; then
                # pretend dpkg status file that marks all packages as installed
                # this is because dpkg-checkbuilddeps only works on installed pkgs
-               ( apt-cache dumpavail -o APT::Default-Release=unstable && \
+               ( apt-cache dumpavail -o APT::Default-Release=$DISTRIBUTION && \
                        for i in ${EXTRA_DEBS[*]}; do apt-cache show $(echo $i | cut -d_ -f1); done ) | \
                sed -e 's/Package: .*/\0\nStatus: install ok installed/g' > dpkg-dummy/status
                if ! test -s dpkg-dummy/status; then