X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/536976170fe01c9637af246302ab7b589993788e..6920216dc52ae31fb467f64e5422040c35c9661a:/dselect/install?ds=sidebyside diff --git a/dselect/install b/dselect/install index 572e8d1c3..9e43438ac 100755 --- a/dselect/install +++ b/dselect/install @@ -7,7 +7,8 @@ APTGET="/usr/bin/apt-get" DPKG="/usr/bin/dpkg" set -e RES=`apt-config shell CLEAN DSelect::Clean OPTS DSelect::Options \ - DPKG Dir::Bin::dpkg APTGET Dir::Bin::apt-get` + DPKG Dir::Bin::dpkg APTGET Dir::Bin::apt-get \ + ARCHIVES Dir::Cache::Archives/` eval $RES set +e @@ -47,6 +48,12 @@ fi # Finished OK if [ $RES -eq 0 ]; then + + if [ `ls $ARCHIVES $ARCHIVES/partial | egrep -v "^lock$|^partial$" | wc -l` \ + -eq 0 ]; then + exit 0 + fi + # Check the cleaning mode case `echo $CLEAN | tr '[:upper:]' '[:lower:]'` in auto)