From e42eb508e01f4de6def088fe941344d3ca733fa5 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:53:46 +0000 Subject: Fixed cd stuff and some minor bugs Author: jgg Date: 1999-05-23 05:45:12 GMT Fixed cd stuff and some minor bugs --- dselect/install | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'dselect') diff --git a/dselect/install b/dselect/install index 572e8d1c3..6cf5dcf1a 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) -- cgit v1.2.3