aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-11-18 10:15:15 +0000
committerMattia Rizzolo <mattia@mapreri.org>2015-11-18 10:29:10 +0000
commitc6dcd5e516f0de7199599ff69e55cb3525e7bec6 (patch)
treea56f475bccf7016711859db75bad769be4423f13
parent92191f5c6441c7d700c91bc03a0a1274645c82f0 (diff)
downloadpbuilder-c6dcd5e516f0de7199599ff69e55cb3525e7bec6.tar
pbuilder-c6dcd5e516f0de7199599ff69e55cb3525e7bec6.tar.gz
updatebuildenv: correctly detect if debdelta is available
Closes: #805392
-rwxr-xr-xpbuilder-updatebuildenv2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbuilder-updatebuildenv b/pbuilder-updatebuildenv
index d91ce88..fd6cbf7 100755
--- a/pbuilder-updatebuildenv
+++ b/pbuilder-updatebuildenv
@@ -73,7 +73,7 @@ recover_aptcache
$TRAP saveaptcache_umountproc_cleanbuildplace_trap exit sighup
if [ "$DEBDELTA" = "yes" ]; then
- if $CHROOTEXEC hash debdelta-upgrade 2> /dev/null ; then
+ if $CHROOTEXEC which debdelta-upgrade > /dev/null 2>&1 ; then
log.i "Using debdelta-upgrade for available deltas"
if $CHROOTEXEC debdelta-upgrade ; then
: