projects
/
apt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ead9d2
)
* supress output when /var/cache/apt/archives is empty; break when min-age is reached
author
Michael Vogt
<michael.vogt@ubuntu.com>
Wed, 6 Apr 2005 17:49:40 +0000
(17:49 +0000)
committer
Michael Vogt
<michael.vogt@ubuntu.com>
Wed, 6 Apr 2005 17:49:40 +0000
(17:49 +0000)
debian/apt.cron.daily
patch
|
blob
|
blame
|
history
diff --git
a/debian/apt.cron.daily
b/debian/apt.cron.daily
index 5145a5d2f52707b1fe888837f8cc98a81bcd826f..2d93a5ba47fc5363befc6a6a6693fa4d7aba9015 100644
(file)
--- 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