[Pkg-xfce-commits] r6089 - scripts/pbuilder

Yves-Alexis Perez corsac at alioth.debian.org
Wed Oct 5 08:19:47 UTC 2011


Author: corsac
Date: 2011-10-05 20:19:47 +0000 (Wed, 05 Oct 2011)
New Revision: 6089

Modified:
   scripts/pbuilder/pdebuild-sources.sh
Log:
fix build dir for clean


Modified: scripts/pbuilder/pdebuild-sources.sh
===================================================================
--- scripts/pbuilder/pdebuild-sources.sh	2011-10-05 20:16:27 UTC (rev 6088)
+++ scripts/pbuilder/pdebuild-sources.sh	2011-10-05 20:19:47 UTC (rev 6089)
@@ -67,10 +67,10 @@
                find $SCRIPTSDIR/pbuilder/xfce/log -type f \
                    -name '*.log' -exec rm {} \;
                # .deb
-               find $SCRIPTSDIR/pbuilder/xfce/build -type f \
+               find $BUILDRESULT -type f \
                    -name '*.changes' -exec dcmd rm {} \;
                # dput
-               find $SCRIPTSDIR/pbuilder/xfce/build -type f \
+               find $BUILDRESULT -type f \
                    -name '*.upload' -exec rm {} \;
                # pbuilder dirs
                find $SCRIPTSDIR/pbuilder/xfce/cache -type f \
@@ -135,11 +135,11 @@
 }
 
 # Rough check for needed executables
-NEEDEDBINS='/usr/sbin/pbuilder /usr/bin/cdebootstrap
-            /usr/bin/fakeroot /usr/bin/svn-buildpackage'
+NEEDEDBINS="/usr/sbin/pbuilder ${DEBOOTSTRAP}
+            /usr/bin/fakeroot /usr/bin/svn-buildpackage"
 for bin in $NEEDEDBINS; do
-    if [ ! -x $bin ]; then
-        echo "$bin is missing. Exiting." > /dev/stderr
+    if [ ! -x "$bin" ]; then
+        echo ""$bin" is missing. Exiting." > /dev/stderr
         exit
     fi
 done




More information about the Pkg-xfce-commits mailing list