summaryrefslogtreecommitdiff
path: root/dselect
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-08-26 18:51:40 +0200
committerMichael Vogt <mvo@debian.org>2013-08-26 18:51:40 +0200
commit0806f2a6c46f7f440aa80214cbcac80dd69e88be (patch)
treef122ce13194f24c49e445398249b67672f1bf23c /dselect
parent11e6f40674631154a8db1082f6fbf42de3ce3092 (diff)
dselect/install: add new DSELECT_UPGRADE_OPTS="-f"
Diffstat (limited to 'dselect')
-rwxr-xr-xdselect/install7
1 files changed, 4 insertions, 3 deletions
diff --git a/dselect/install b/dselect/install
index e9974b23e..7104ee280 100755
--- a/dselect/install
+++ b/dselect/install
@@ -6,6 +6,7 @@ TEXTDOMAIN="apt"
# Get the configuration from /etc/apt/apt.conf
CLEAN="prompt"
OPTS=""
+DSELECT_UPGRADE_OPTS="-f"
APTGET="/usr/bin/apt-get"
DPKG="/usr/bin/dpkg"
DPKG_OPTS="--admindir=$1"
@@ -47,12 +48,12 @@ yesno() {
}
if [ "$WAIT" = "true" ]; then
- $APTGET $OPTS "$APT_OPT0" "$APT_OPT1" -d dselect-upgrade
+ $APTGET $DSELECT_UPGRADE_OPTS $OPTS "$APT_OPT0" "$APT_OPT1" -d dselect-upgrade
echo $"Press enter to continue." && read RES
- $APTGET $OPTS "$APT_OPT0" "$APT_OPT1" dselect-upgrade
+ $APTGET $DSELECT_UPGRADE_OPTS $OPTS "$APT_OPT0" "$APT_OPT1" dselect-upgrade
RES=$?
else
- $APTGET $OPTS "$APT_OPT0" "$APT_OPT1" dselect-upgrade
+ $APTGET $DSELECT_UPGRADE_OPTS $OPTS "$APT_OPT0" "$APT_OPT1" dselect-upgrade
RES=$?
fi