squid-deb-proxy does not refresh translation files often enough
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maas (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
squid-deb-proxy (Ubuntu) |
Fix Released
|
Medium
|
Michael Vogt |
Bug Description
per conversation with mvo:
<smoser> i'm remembering (possibly faultily) that apt at some point changed to checking hashsums of translation files when it previously did not.
<smoser> did i make that up ?
<mvo> hey
<mvo> it does check them now, yes
<smoser> and it did not before, right?
<mvo> well, it always did but we did not include the hashes in the release file in the past
<smoser> ah. that'd be why i didn't fine any thing in git logs of apt
<mvo> which is not quiete correct we did include a hash to a i18n/index file or something that contained the hashes
<mvo> yeah, it was only a issue with LP
<smoser> http://
<smoser> so in squid-deb-
<mvo> oh, this needs updates for translations now I guess?
<mvo> absolutely
<smoser> (ie, an entry around line 60, right ?)
<smoser> yeah.
<mvo> thanks for bringing this up
Related bugs:
* bug 1313576: Add hashes for Translation-$lang into the Release file
Related branches
- Andres Rodriguez (community): Approve
- Lee Trager (community): Approve
- David Lawson (community): Approve
- Michael Vogt: Pending requested
-
Diff: 30 lines (+8/-1)2 files modifieddebian/changelog (+4/-0)
debian/extras/maas-proxy.conf (+4/-1)
- Blake Rouse (community): Approve
- Lee Trager (community): Approve
-
Diff: 60 lines (+18/-10)2 files modifieddebian/changelog (+7/-2)
debian/extras/maas-proxy.conf (+11/-8)
Changed in squid-deb-proxy (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Michael Vogt (mvo) |
Changed in maas (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in maas (Ubuntu): | |
status: | Confirmed → Fix Released |
attaching a diff from squid-deb- proxy.conf [1] to debian/ extras/ maas-proxy. conf [2]
[1] http:// bazaar. launchpad. net/~squid- deb-proxy- developers/ squid-deb- proxy/trunk/ view/head: /squid- deb-proxy. conf bazaar. launchpad. net/~ubuntu- branches/ ubuntu/ wily/maas/ wily/view/ head:/debian/ extras/ maas-proxy. conf
[2] http://
$ mydiff() { myd=$(mktemp -d); for f in "$1" "$2"; do grep -v "^#" "$f" | sort -u > "$myd/${f##*/}"; done; diff -u "${myd}/${1##*/}" "${myd}/${2##*/}"; rm -Rf "$myd"; } proxy.conf debian/ extras/ maas-proxy. conf
$ mydiff squid-deb-
Pay particular difference to refresh_pattern: ubuntu. com\/.* 0 1% 1 Sources) (|\.bz2| \.gz|\. xz)$ 0 0% 0 refresh-ims .*)(|\. bz2|\.gz| \.xz)$ 0 0% 0 refresh-ims Packages( .gz)*)$ 0 20% 2880
-refresh_pattern changelogs.
-refresh_pattern deb$ 129600 100% 129600
-refresh_pattern \/InRelease$ 0 0% 0 refresh-ims
-refresh_pattern \/(Packages|
-refresh_pattern \/Release(|\.gpg)$ 0 0% 0 refresh-ims
-refresh_pattern tar.bz2$ 129600 100% 129600
-refresh_pattern tar.gz$ 129600 100% 129600
-refresh_pattern tar.xz$ 129600 100% 129600
-refresh_pattern \/(Translation-
-refresh_pattern udeb$ 129600 100% 129600
+refresh_pattern . 0 20% 4320
+refresh_pattern ^ftp: 1440 20% 10080
+refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
+refresh_pattern (Release|
The new change for squid-deb- proxy.conf is the addition of the Translation line.
Note other differences:
* maas-proxy does not pay special attention to .bz2 or .xz files (only .gz)
* maas-proxy does not pay special attention to .gpg files
* squid-deb-proxy uses 'refresh-ims' while maas's version does not.
http:// www.squid- cache.org/ Doc/config/ refresh_ pattern/ has info on what those lines are (refresh_pattern regex min max [options])