summaryrefslogtreecommitdiff
path: root/dselect
diff options
context:
space:
mode:
Diffstat (limited to 'dselect')
-rwxr-xr-xdselect/install9
1 files changed, 8 insertions, 1 deletions
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)