aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-buildpackage
diff options
context:
space:
mode:
authordancer <dancer>2001-11-08 02:06:38 +0000
committerdancer <dancer>2001-11-08 02:06:38 +0000
commit62e2bee0ba947d154b1caf9f1dbc83f58748e5b0 (patch)
treed425b5458304933a29ca514e3a38d32a16cd8a9c /pbuilder-buildpackage
parent23d64aadabdc9bf4714b84e76be5fcaa1342404b (diff)
downloadpbuilder-62e2bee0ba947d154b1caf9f1dbc83f58748e5b0.tar
pbuilder-62e2bee0ba947d154b1caf9f1dbc83f58748e5b0.tar.gz
updated
Diffstat (limited to 'pbuilder-buildpackage')
-rwxr-xr-xpbuilder-buildpackage11
1 files changed, 7 insertions, 4 deletions
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage
index be017c8..39da331 100755
--- a/pbuilder-buildpackage
+++ b/pbuilder-buildpackage
@@ -112,6 +112,7 @@ function checkbuilddep_internal () {
if echo "$INSTALLPKG" | grep '\[' > /dev/null ; then
# this package has arch-conflicts.
if checkbuilddep_archdeps "$INSTALLPKG" "$ARCH"; then
+ echo "I: Ignoring other-arch"
continue;
fi
fi
@@ -120,18 +121,20 @@ function checkbuilddep_internal () {
if ! checkbuilddep_versiondeps $(echo "$INSTALLPKG" | tr "/" " " | awk '{print $1}') \
$(echo "$INSTALLPKG" | tr "/" " " | sed 's/^.*(\(<<\|<=\|>=\|=\|<\|>>\|>\)[ ]*\(.*\)).*$/\1/') \
$(echo "$INSTALLPKG" | tr "/" " " | sed 's/^.*(\(<<\|<=\|>=\|=\|<\|>>\|>\)[ ]*\(.*\)).*$/\2/'); then
- echo " -> Satisfies version, not trying"
+ echo "I: Satisfies version, not trying"
continue;
fi
fi
-
- if $CHROOTEXEC usr/bin/dpkg -s $(echo "$INSTALLPKG" | tr "/" " " | awk '{print $1}'); then
+ # if package exists, remove it.
+ if $CHROOTEXEC usr/bin/dpkg -s $(echo "$INSTALLPKG" | tr "/" " " | awk '{print $1}') 2>&1 | grep ^Package: > /dev/null; then
if ! $CHROOTEXEC usr/bin/apt-get -y remove $(echo "$INSTALLPKG" | tr "/" " " | awk '{print $1}') ; then
- echo Could not satisfy build-conflicts
+ echo "E: Could not satisfy build-conflicts" >&2
abortingfunction
exit 1
fi
+ else
+ echo "I:"
fi
done
}