mirror of
https://git.proxmox.com/git/debcargo-conf
synced 2025-04-28 13:24:24 +00:00
build: Check build deps for the given $DISTRIBUTION
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>
This commit is contained in:
parent
942fc68ddb
commit
bbaba306be
2
build.sh
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user