/etc/cron.daily/apt assumes that CacheArchive inside CacheDir
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Won't Fix
|
Low
|
Unassigned |
Bug Description
Binary package hint: apt
cron apt script assumes that CacheArchive directory is inside CacheDir. However, apt allows configuration when CacheArchive is outside CacheDir (for example, I use it because of space shortage in /var).
Some changes to /etc/cron.daily/apt like this would be useful...
--- /etc/cron.daily/apt 2010-04-17 11:42:26.000000000 +0400
+++ tmp/apt 2010-04-17 11:45:38.000000000 +0400
@@ -181,7 +181,11 @@
exit
fi
- Cache="
+ if [ "x$CacheArchive" != "x${CacheArchiv
+ Cache="
+ else
+ Cache="
+ fi
# check age
if [ ! $MaxAge -eq 0 ] && [ ! $MinAge -eq 0 ]; then
@@ -279,7 +283,13 @@
return
fi
- Cache="
+
+ if [ "x$CacheArchive" != "x${CacheArchiv
+ Cache="
+ else
+ Cache="
+ fi
+
Back=
BackX=
for x in $(seq 0 1 $((${BackupLeve
The code for the cron job has changed since the bug was reported:
Cache= "/var/cache/ apt/archives/ " :archives/ d)
eval $(apt-config shell Cache Dir::Cache:
Does this allow for the intended behaviour of having a CacheArchive outside of CacheDir?