]> git.saurik.com Git - apt.git/blobdiff - debian/apt.cron.daily
* merged with apt--main and apt--fixes
[apt.git] / debian / apt.cron.daily
index 5145a5d2f52707b1fe888837f8cc98a81bcd826f..2d93a5ba47fc5363befc6a6a6693fa4d7aba9015 100644 (file)
@@ -110,7 +110,7 @@ check_size_constraints()
        MinAge=$(($MinAge*24*60*60))
 
        # reverse-sort by mtime
-       for file in $(ls -rt $Cache/*.deb); do 
+       for file in $(ls -rt $Cache/*.deb 2>/dev/null); do 
            du=$(du -s $Cache)
            size=${du%%/*}
            # check if the cache is small enough
@@ -125,7 +125,7 @@ check_size_constraints()
                #echo "$file ($delta), $MinAge"
                if [ $delta -le $MinAge ]; then
                    #echo "Skiping $file (delta=$delta)"
-                   continue
+                   break
                fi
            fi