Changed for --twice option.

-- 
aka nxvl
Key fingerprint = BCE4 27A0 D03E 55DE DA2D  BE06 891D 8DEE 6545 97FE
gpg --keyserver keyserver.ubuntu.com --recv-keys 654597FE

--- pbuilder-0.181/pbuilder.8	2008-05-24 18:54:05.000000000 -0400
+++ pbuilder-0.181/pbuilder.8	2008-08-03 23:23:44.000000000 -0400
@@ -272,6 +272,13 @@
 unpacking the build system, and unpacking the source,
 and satisfying the build-dependency.
 
+.B "\-\-twice"
+is for
+.B "--build"
+option
+It builds the package twice in a row to check for possible clean issues. It 
+will generate the .deb of the second build.
+
 .B "B<digit><digit><whatever-else-you-want>"
 is executed after build system finishes building,
 successfully, before copying back the build result.
--- pbuilder-0.181/pbuilder-buildpackage	2008-05-24 18:54:05.000000000 -0400
+++ pbuilder-0.181/pbuilder-buildpackage	2008-08-03 23:20:33.000000000 -0400
@@ -117,8 +117,14 @@
 
 if [ -z "$DEBEMAIL" ]; then
     DPKG_COMMANDLINE="cd tmp/buildd/*/; dpkg-buildpackage -us -uc $DEBBUILDOPTS"
+    if [ -z "$TWICE" ]; then
+        DPKG_COMMANDLINE="$DPKG_COMMANDLINE; dpkg-buildpackage -us -uc $DEBBUILDOPTS"
+    fi
 else
     DPKG_COMMANDLINE="cd tmp/buildd/*/; dpkg-buildpackage -us -uc  \"-m$DEBEMAIL\" $DEBBUILDOPTS"
+    if [ -z "$TWICE" ]; then
+        DPKG_COMMANDLINE="$DPKG_COMMANDLINE; dpkg-buildpackage -us -uc \"-m$DEBEMAIL\" $DEBBUILDOPTS"
+    fi
 fi
 
 (
--- pbuilder-0.181/pbuilder-checkparams	2008-05-24 18:54:05.000000000 -0400
+++ pbuilder-0.181/pbuilder-checkparams	2008-08-03 23:10:12.000000000 -0400
@@ -217,6 +217,10 @@
 	    IGNORE_UMOUNT="no"
 	    shift; 
 	    ;;
+	--twice)
+	    TWICE=True
+	    shift;
+	    ;;
 	--) # end of processing for this
 	    shift;
 	    break;
--- pbuilder-0.181/pbuilder-modules	2008-05-24 18:54:05.000000000 -0400
+++ pbuilder-0.181/pbuilder-modules	2008-08-03 23:26:42.000000000 -0400
@@ -72,6 +72,7 @@
  --preserve-buildplace
  --bindmounts [bind-mount-point]
  --debug
+ --twice
  --autocleanaptcache
  --debootstrapopts [debootstrap options]
  --save-after-login/--save-after-exec

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to