Fix 2 bugs in pbuilder (one of them with an ugly solution -.-)

This commit is contained in:
Siegfried-Angel Gevatter Pujals (RainCT) 2007-11-22 18:37:50 +01:00
parent 4974afe268
commit b23a437c2c

View File

@ -173,13 +173,13 @@ fi
# it's supported, use the --components option # it's supported, use the --components option
if dpkg --compare-versions $(dpkg-query -W -f='${Version}' pbuilder) ge 0.174 if dpkg --compare-versions $(dpkg-query -W -f='${Version}' pbuilder) ge 0.174
then then
COMPONENTS_LINE="--othermirror \"\" --components \"$COMPONENTS\""
else
# else, do it the old way
if [ $ISDEBIAN = True ]; then if [ $ISDEBIAN = True ]; then
echo "Warning: If this operation fails it might be because you changed the value of $COMPONENTS in the pbuilderrc file." echo "Warning: If this operation fails it might be because you changed the value of $COMPONENTS in the pbuilderrc file."
echo "See https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/140964 for more information." echo "See https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/140964 for more information."
fi fi
COMPONENTS_LINE="--othermirror \"\" --components \"$COMPONENTS\""
else
# else, do it the old way
COMPONENTS_LINE="--othermirror \"deb $ARCHIVE $DISTRIBUTION $COMPONENTS\"" COMPONENTS_LINE="--othermirror \"deb $ARCHIVE $DISTRIBUTION $COMPONENTS\""
fi fi
@ -191,5 +191,5 @@ sudo pbuilder $OPERATION \
$( [ -z $DEBCACHE ] || echo "--aptcache $DEBCACHE" ) \ $( [ -z $DEBCACHE ] || echo "--aptcache $DEBCACHE" ) \
--buildresult $BASE_DIR/${FOLDERBASE}_result \ --buildresult $BASE_DIR/${FOLDERBASE}_result \
--mirror "$ARCHIVE" \ --mirror "$ARCHIVE" \
$COMPONENTS_LINE \ $@ \
$@ $COMPONENTS_LINE