package: src:pbuilder version: 0.215 severity: wishlist tag: patch It would be convenient if the compression method for base.tgz were automatically determined when decompressing, rather than needed to be specified as a command-line option.
See attached proposed change, which defers the decompression choice to tar. This makes it possible to do things like convert base.tgz from gzip to bzip simply by running --update with a --compressprog bzip2, which saves some space; or to use --compressprog cat for an uncompressed (speedier) base.tgz. Best wishes, Mike
--- pbuilder-modules.orig 2013-12-01 19:49:35.114327600 -0500 +++ pbuilder-modules 2013-12-01 19:49:10.422327813 -0500 @@ -448,7 +448,7 @@ log "E: failed to find $BASETGZ, have you done <pbuilder create> to create your base tarball yet?" exit 1 fi - if ! (cd "$BUILDPLACE" && tar -x --use-compress-program "$COMPRESSPROG" -p -f "$BASETGZ"); then + if ! (cd "$BUILDPLACE" && tar -x -p -f "$BASETGZ"); then log "E: failed to extract $BASETGZ to $BUILDPLACE" exit 1 fi