summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-04-06 17:49:40 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-04-06 17:49:40 +0000
commit3408b58cbff032666298c44e4111e3965ccd3f52 (patch)
tree35fef68df4d448092efc0be8275f10ce20f043a4 /debian
parent6ead9d25018d517cd6cfe27399b7fd7e33c1ef19 (diff)
* supress output when /var/cache/apt/archives is empty; break when min-age is reached
Diffstat (limited to 'debian')
-rw-r--r--debian/apt.cron.daily4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily
index 5145a5d2f..2d93a5ba4 100644
--- a/debian/apt.cron.daily
+++ b/debian/apt.cron.daily
@@ -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