summaryrefslogtreecommitdiff
path: root/debian/apt.cron.daily
diff options
context:
space:
mode:
authorChristian Perrier <bubulle@debian.org>2005-05-07 12:10:48 +0000
committerChristian Perrier <bubulle@debian.org>2005-05-07 12:10:48 +0000
commitfb7bd000b3cf84807b6a9ec66609e7938c3a343f (patch)
tree66b150f3c4c9dc4970f5fcafa26157ddb2c939d7 /debian/apt.cron.daily
parent080bf1be2e89f533cdf2b0192837fc8542e02602 (diff)
parent61abe43c0b6c74ef561c093bbd0c0d4626558655 (diff)
Merge with Matt
Patches applied: * apt@packages.debian.org/apt--main--0--patch-79 Merge michael.vogt@ubuntu.com--2005/apt--mvo--0 * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-20 * supress output when /var/cache/apt/archives is empty; break when min-age is reached * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-21 * changed distro to "experimental", changed version number to 0.6.36
Diffstat (limited to 'debian/apt.cron.daily')
-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 1d830260b..24ad6855a 100644
--- a/debian/apt.cron.daily
+++ b/debian/apt.cron.daily
@@ -155,7 +155,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
@@ -170,7 +170,7 @@ check_size_constraints()
#echo "$file ($delta), $MinAge"
if [ $delta -le $MinAge ]; then
#echo "Skiping $file (delta=$delta)"
- continue
+ break
fi
fi