mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-10 00:11:29 +00:00
check if $BASE_DIR/etc/$DISTRIBUTION/apt.conf/sources.list already exists,
if not, create new, if yes, leave it untouched
This commit is contained in:
parent
a4411984ad
commit
84f00a9165
@ -216,6 +216,8 @@ then
|
|||||||
then
|
then
|
||||||
mkdir -p $BASE_DIR/etc/$DISTRIBUTION/apt.conf
|
mkdir -p $BASE_DIR/etc/$DISTRIBUTION/apt.conf
|
||||||
fi
|
fi
|
||||||
|
if [ ! -e $BASE_DIR/etc/$DISTRIBUTION/apt.conf/sources.list ]
|
||||||
|
then
|
||||||
echo "deb $ARCHIVE $DISTRIBUTION $COMPONENTS" > $BASE_DIR/etc/$DISTRIBUTION/apt.conf/sources.list
|
echo "deb $ARCHIVE $DISTRIBUTION $COMPONENTS" > $BASE_DIR/etc/$DISTRIBUTION/apt.conf/sources.list
|
||||||
case $DISTRIBUTION in
|
case $DISTRIBUTION in
|
||||||
dapper|edgy|feisty|gutsy )
|
dapper|edgy|feisty|gutsy )
|
||||||
@ -228,6 +230,7 @@ EOF
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n $DESKTOP_SESSION ]
|
if [ -n $DESKTOP_SESSION ]
|
||||||
then
|
then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user