mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
Fixes in pbuilder-dist (seems it works now, but needs testing)
This commit is contained in:
parent
abaa5f068a
commit
498b7d681d
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -29,6 +29,7 @@ ubuntu-dev-tools (0.26) UNRELEASED; urgency=low
|
||||
the default section to universe.
|
||||
* Add AUTHORS section to doc/check-symbols.1, and little changes to
|
||||
doc/suspicious-source.1.
|
||||
* Fix some issues with the new pbuilder-dist code.
|
||||
|
||||
-- Siegfried-Angel Gevatter Pujals (RainCT) <rainct@ubuntu.com> Sun, 17 Feb 2008 17:36:11 +0100
|
||||
|
||||
|
@ -186,21 +186,6 @@ then
|
||||
DEBCACHE='/var/cache/apt/archives/'
|
||||
fi
|
||||
|
||||
|
||||
# Check what version of pbuilder is installed, and if
|
||||
# it's supported, use the --components option
|
||||
if dpkg --compare-versions $(dpkg-query -W -f='${Version}' pbuilder) ge 0.174
|
||||
then
|
||||
COMPONENTS_LINE="--othermirror \"\" --components \"$COMPONENTS\""
|
||||
else
|
||||
# else, do it the old way
|
||||
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 "See https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/140964 for more information."
|
||||
fi
|
||||
COMPONENTS_LINE="--othermirror \"deb $ARCHIVE $DISTRIBUTION $COMPONENTS\""
|
||||
fi
|
||||
|
||||
if [ -n $http_proxy ] || [ -n $HTTP_PROXY ]
|
||||
then
|
||||
if [ -n $http_proxy ]
|
||||
@ -211,7 +196,6 @@ then
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if [ $ISDEBIAN = "False" ]
|
||||
then
|
||||
if [ ! -d $BASE_DIR/etc/$DISTRIBUTION/apt.conf/ ]
|
||||
@ -234,9 +218,9 @@ EOF
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z $PBUILDAUTH ]
|
||||
if [ -z "$PBUILDAUTH" ]
|
||||
then
|
||||
if [ -n $DESKTOP_SESSION ]
|
||||
if [ -n "$DESKTOP_SESSION" ]
|
||||
then
|
||||
case $DESKTOP_SESSION in
|
||||
gnome )
|
||||
@ -256,16 +240,15 @@ else
|
||||
SUDOREPLACE=$PBUILDAUTH
|
||||
fi
|
||||
|
||||
echo $@
|
||||
|
||||
$SUDOREPLACE -- pbuilder $OPERATION \
|
||||
--basetgz $BASE_DIR/$FOLDERBASE-base.tgz \
|
||||
--distribution $DISTRIBUTION \
|
||||
sudo pbuilder $OPERATION \
|
||||
--basetgz "$BASE_DIR/$FOLDERBASE-base.tgz" \
|
||||
--distribution "$DISTRIBUTION" \
|
||||
--debootstrapopts --arch \
|
||||
--debootstrapopts $BINARCH \
|
||||
--debootstrapopts "$BINARCH" \
|
||||
$( [ $SAVELOG = 0 ] || echo "--logfile $BASE_DIR/.lastlog" ) \
|
||||
$( [ -z $PROXY ] || echo "--http-proxy $PROXY" ) \
|
||||
$( [ -z $DEBCACHE ] || echo "--aptcache $DEBCACHE" ) \
|
||||
--buildresult $BASE_DIR/$FOLDERBASE_result \
|
||||
--mirror $ARCHIVE \
|
||||
--aptconfdir $BASE_DIR/etc/$DISTRIBUTION/apt.conf/ $@
|
||||
--buildresult "$BASE_DIR/$FOLDERBASE_result" \
|
||||
--mirror "$ARCHIVE" \
|
||||
--aptconfdir "$BASE_DIR/etc/$DISTRIBUTION/apt.conf/" \
|
||||
$@
|
||||
|
Loading…
x
Reference in New Issue
Block a user