aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-updatebuildenv
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-updatebuildenv')
-rwxr-xr-xpbuilder-updatebuildenv6
1 files changed, 2 insertions, 4 deletions
diff --git a/pbuilder-updatebuildenv b/pbuilder-updatebuildenv
index ef578b3..54f9a4c 100755
--- a/pbuilder-updatebuildenv
+++ b/pbuilder-updatebuildenv
@@ -2,13 +2,11 @@
export LANG=C
export LC_ALL=C
-#this option is optional
-DISTRIBUTION=$1
-
. /etc/pbuilderrc
+. /usr/lib/pbuilder/pbuilder-checkparams
CHROOTEXEC="chroot $BUILDPLACE "
-echo "Upgrading for distribution $DISTRIBUTION"
+test -n "$DISTRIBUTION" && echo "Upgrading for distribution $DISTRIBUTION"
#cd $MYREPOSITORY
#echo Initializing repository