summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalpbuilder-create13
1 files changed, 9 insertions, 4 deletions
diff --git a/localpbuilder-create b/localpbuilder-create
index 60ba340..97fc6d8 100755
--- a/localpbuilder-create
+++ b/localpbuilder-create
@@ -12,10 +12,15 @@ fi
pool=$1
distro=${2:-$pool}
+basetgz="/var/cache/pbuilder/base-$pool.tgz"
+buildplace="/var/cache/pbuilder/build-$pool/"
+aptcache="/var/cache/pbuilder/aptcache-$pool/"
+buildresult="$HOME/src/pbuild-$pool/"
+
sudo pbuilder create \
- --buildresult $HOME/src/pbuild-$pool/ \
+ --buildresult "$buildresult" \
--distribution "$distro" \
- --basetgz /var/cache/pbuilder/base-$pool.tgz \
- --buildplace /var/cache/pbuilder/build-$pool/ \
- --aptcache /var/cache/pbuilder/aptcache-$pool/ \
+ --basetgz "$basetgz" \
+ --buildplace "$buildplace" \
+ --aptcache "$aptcache" \
${3:+--othermirror "$3"}