summaryrefslogtreecommitdiff
path: root/dselect
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:53:46 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:53:46 +0000
commite42eb508e01f4de6def088fe941344d3ca733fa5 (patch)
treeeda5792fdb010c11ca64341ae560f0d1c9fb879d /dselect
parent73c2c61beb6b2fb4a7685f04d2b0e17d5a934504 (diff)
downloadapt-e42eb508e01f4de6def088fe941344d3ca733fa5.tar.gz
Fixed cd stuff and some minor bugs
Author: jgg Date: 1999-05-23 05:45:12 GMT Fixed cd stuff and some minor bugs
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)