From c6dcd5e516f0de7199599ff69e55cb3525e7bec6 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Wed, 18 Nov 2015 10:15:15 +0000 Subject: updatebuildenv: correctly detect if debdelta is available Closes: #805392 --- pbuilder-updatebuildenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pbuilder-updatebuildenv') 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 : -- cgit v1.2.3