mirror of
https://git.proxmox.com/git/debcargo-conf
synced 2025-04-28 13:24:24 +00:00
build.sh: check dpkg-dummy is not empty
This commit is contained in:
parent
46d65c0dbf
commit
89617f5cce
4
build.sh
4
build.sh
@ -72,6 +72,10 @@ check_build_deps() {
|
||||
# this is because dpkg-checkbuilddeps only works on installed pkgs
|
||||
apt-cache dumpavail -o APT::Default-Release=unstable | \
|
||||
sed -e 's/Package: .*/\0\nStatus: install ok installed/g' > dpkg-dummy/status
|
||||
if ! test -s dpkg-dummy/status; then
|
||||
echo >&2 "couldn't generate dpkg-dummy/status, is Debian unstable in your APT sources?"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
( cd "$PKGNAME" && dpkg-checkbuilddeps --admindir=../dpkg-dummy )
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user