summaryrefslogtreecommitdiff
path: root/dselect/update
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:51:34 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:51:34 +0000
commitc217f42adc1a82c7400e85178f61bf429fea1bc4 (patch)
tree0daa2459bdbfe9db54412e03cb33e37a1f4e3be5 /dselect/update
parent7d5bbcbc91a55fe3d1727c9dfc42b676b2fb743e (diff)
Fixed up the docs a bit
Author: jgg Date: 1998-11-23 01:45:58 GMT Fixed up the docs a bit
Diffstat (limited to 'dselect/update')
-rwxr-xr-xdselect/update9
1 files changed, 8 insertions, 1 deletions
diff --git a/dselect/update b/dselect/update
index ca507c4c6..3260278b6 100755
--- a/dselect/update
+++ b/dselect/update
@@ -7,9 +7,11 @@ APTGET="/usr/bin/apt-get"
APTCACHE="/usr/bin/apt-cache"
DPKG="/usr/bin/dpkg"
CACHEDIR="/var/cache/apt"
+PROMPT="no"
RES=`apt-config shell OPTS DSelect::UpdateOptions \
DPKG Dir::Bin::dpkg APTGET Dir::Bin::apt-get \
- APTCACHE Dir::Bin::apt-cache CACHEDIR Dir::Cache`
+ APTCACHE Dir::Bin::apt-cache CACHEDIR Dir::Cache \
+ PROMPT DSelect::PromptAfterUpdate`
eval $RES
$APTGET $OPTS update
@@ -19,4 +21,9 @@ rm -f /var/cache/apt/available
$APTCACHE dumpavail > $CACHEDIR/available
$DPKG --update-avail $CACHEDIR/available
rm -f $CACHEDIR/available
+
+if [ $PROMPT == "yes" ]; then
+ echo "Press enter to continue." && read RES;
+fi
+
exit 0