aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-satisfydepends-aptitude
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2007-04-02 16:18:34 +0200
committerLoïc Minier <lool@dooz.org>2007-04-02 16:18:34 +0200
commitbfc972372d44f5c23da4ddc5a3c523c62ed33cc4 (patch)
treebc048c7dc42dd4d765c5a6b442ae6a45201fb363 /pbuilder-satisfydepends-aptitude
parentf6fbc402b8664997d6bf52b3435a8393ed803f4d (diff)
downloadpbuilder-bfc972372d44f5c23da4ddc5a3c523c62ed33cc4.tar
pbuilder-bfc972372d44f5c23da4ddc5a3c523c62ed33cc4.tar.gz
* pbuilder-satisfydepends-aptitude: check whether the dummy dependencies
package was truly installed or error out; catches situation where "aptitude" did not keep the dummy package but claimed the installation was successful.
Diffstat (limited to 'pbuilder-satisfydepends-aptitude')
-rwxr-xr-xpbuilder-satisfydepends-aptitude5
1 files changed, 5 insertions, 0 deletions
diff --git a/pbuilder-satisfydepends-aptitude b/pbuilder-satisfydepends-aptitude
index 6f94d74..14d50de 100755
--- a/pbuilder-satisfydepends-aptitude
+++ b/pbuilder-satisfydepends-aptitude
@@ -87,6 +87,11 @@ EOF
$CHROOTEXEC apt-get -y --force-yes install aptitude
$CHROOTEXEC dpkg -i "$BUILD_DEP_DEB_DIR/pbuilder-satisfydepends-dummy.deb" || true
$CHROOTEXEC aptitude -y install pbuilder-satisfydepends-dummy
+ # check whether the aptitude's resolver kept the package
+ if ! $CHROOTEXEC dpkg -l pbuilder-satisfydepends-dummy 2>/dev/null | grep -q ^ii; then
+ echo "Aptitude couldn't satisfy the build dependencies"
+ exit 1
+ fi
echo " -> Finished parsing the build-deps"
}