aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-modules
diff options
context:
space:
mode:
authordancer <dancer>2001-11-18 09:02:35 +0000
committerdancer <dancer>2001-11-18 09:02:35 +0000
commitc26667da493693eecc1aeb0e5b4c5fd811ff30d6 (patch)
tree15e2573c3045b3805edc8582f9863541f5d86ee9 /pbuilder-modules
parentcaa562e1600301f2cb8c4db02dd2bb1bffc09c6a (diff)
downloadpbuilder-c26667da493693eecc1aeb0e5b4c5fd811ff30d6.tar
pbuilder-c26667da493693eecc1aeb0e5b4c5fd811ff30d6.tar.gz
fixed bugs 12057 and 12063, which are typo/logic errors, thanks to steve
Diffstat (limited to 'pbuilder-modules')
-rw-r--r--pbuilder-modules4
1 files changed, 2 insertions, 2 deletions
diff --git a/pbuilder-modules b/pbuilder-modules
index bb15e6d..2ca91ef 100644
--- a/pbuilder-modules
+++ b/pbuilder-modules
@@ -80,10 +80,10 @@ function abortingfunction () {
function installaptlines (){
echo Installing apt-lines
rm -f "$BUILDPLACE"/etc/apt/sources.list
- test -n "$DISTRIBUTION" && (
+ if [ -z "$DISTRIBUTION" ]; then
echo "Distribution not specified, please specify" >&2
exit 1
- )
+ fi
if [ -n "$BUILDPLACE" ] ; then
cat >> "$BUILDPLACE"/etc/apt/sources.list << EOF
deb $MIRRORSITE $DISTRIBUTION main contrib non-free