X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/8e7e7700e7dbf706abdbb8ba4831588654ccd6f4..aa6e3431719da89d4beadf8fc81e5236f697d405:/dselect/update?ds=sidebyside diff --git a/dselect/update b/dselect/update index ec5e78cc2..904648428 100755 --- a/dselect/update +++ b/dselect/update @@ -14,7 +14,13 @@ RES=`apt-config shell OPTS DSelect::UpdateOptions \ PROMPT DSelect::PromptAfterUpdate` eval $RES -$APTGET $OPTS update +# It looks slightly ugly to have a double / in the dpkg output +CACHEDIR=`echo $CACHEDIR | sed -e "s|/$||"` + +set +e +FAILED=0 +$APTGET $OPTS update || FAILED=1 +set -e echo "Merging Available information" rm -f /var/cache/apt/available @@ -26,4 +32,4 @@ if [ $PROMPT = "yes" ]; then echo "Press enter to continue." && read RES; fi -exit 0 +exit $FAILED