diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:54:52 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:54:52 +0000 |
commit | 08cfc005c3529d4ff63d229b05d75c6ceb88225b (patch) | |
tree | 6a9a7901f7bde71cb427a2bf9064dfbba9e807fa /dselect/update | |
parent | 5ec427c295784f8b50740a7cb2da30b9c86e81e7 (diff) | |
download | apt-08cfc005c3529d4ff63d229b05d75c6ceb88225b.tar.gz |
Retries and tweaked dselect script
Author: jgg
Date: 1999-10-17 20:58:36 GMT
Retries and tweaked dselect script
Diffstat (limited to 'dselect/update')
-rwxr-xr-x | dselect/update | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dselect/update b/dselect/update index 87dc21aa1..904648428 100755 --- a/dselect/update +++ b/dselect/update @@ -17,7 +17,10 @@ eval $RES # It looks slightly ugly to have a double / in the dpkg output CACHEDIR=`echo $CACHEDIR | sed -e "s|/$||"` -$APTGET $OPTS update +set +e +FAILED=0 +$APTGET $OPTS update || FAILED=1 +set -e echo "Merging Available information" rm -f /var/cache/apt/available @@ -29,4 +32,4 @@ if [ $PROMPT = "yes" ]; then echo "Press enter to continue." && read RES; fi -exit 0 +exit $FAILED |