X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/7a1b1f8bd649113e99ecef0489e2f2194e283d1e..429907dc45779aa1ba18549f5b30044542e92d04:/dselect/update 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