mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-08 15:31:29 +00:00
Fix 2 bugs in pbuilder (one of them with an ugly solution -.-)
This commit is contained in:
parent
4974afe268
commit
b23a437c2c
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user