]> git.saurik.com Git - apt.git/blobdiff - dselect/install
Made http exit on a closed stdin
[apt.git] / dselect / install
index 572e8d1c3738c20a27ba07f02ef7217f1053dbbe..9e43438ac73015f77d9ee6255de92815d91cca6e 100755 (executable)
@@ -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)