~ubuntu-branches/ubuntu/quantal/apt-cacher-ng/quantal-backports

« back to all changes in this revision

Viewing changes to source/acfg_defaults.cc

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2010-10-20 18:42:32 UTC
  • mfrom: (1.1.28 upstream) (29.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20101020184232-f3qlncwapjxvyt6r
Tags: 0.5.7-1
* New upstream version
* Typos in acng.conf fixed (thanks, closes: 599328)

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#warning FIXME: something is wrong with its regexp and the begining of the vfilepat pattern
15
15
#define VPATPREFIX "" 
16
16
#else
17
 
#define VPATPREFIX "(^|.*?/)"
 
17
#define INFOLDER "(^|.*?/)"
18
18
#endif
19
19
 
20
20
 
28
28
 
29
29
string pfilepat(".*(\\.d?deb|\\.rpm|\\.dsc|\\.tar"COMPRLIST"(\\.gpg)?"
30
30
                "|\\.diff"COMPRLIST"|\\.jigdo|\\.template|changelog|copyright"
31
 
                "|\\.udeb|\\.diff/.*\\.gz|vmlinuz|initrd"COMPRLIST"|(Devel)?ReleaseAnnouncement(\\?.*)?"
 
31
                "|\\.udeb|\\.diff/.*\\.gz|(Devel)?ReleaseAnnouncement(\\?.*)?"
32
32
    "|[a-f0-9]+-(susedata|updateinfo|primary|deltainfo).xml.gz" //opensuse, index data, hash in filename
33
33
                "|fonts/final/[a-z]+32.exe$" // msttcorefonts
 
34
                "|/dists/.*/installer-[^/]+/[0-9][^/]+/images/.*" // d-i stuff with revision
34
35
")$");
35
36
 
36
 
string vfilepat( VPATPREFIX
 
37
string vfilepat( INFOLDER
37
38
                "(Index|Packages"COMPRLIST"?|Release|Release\\.gpg|"
38
39
                "Sources"COMPRLIST"?|release|index\\.db-.*\\.gz|Contents-[^/]*"COMPRLIST
39
40
                "|pkglist[^/]*\\.bz2|rclist[^/]*\\.bz2|/meta-release[^/]*|Translation[^/]*"COMPRLIST
 
41
                "|MD5SUMS|SHA1SUMS" // d-i stuff
40
42
                "|((setup|setup-legacy)(\\.ini|\\.bz2|\\.hint)(\\.sig)?)|mirrors\\.lst" // cygwin
41
43
                "|repo(index|md)\\.xml(\\.asc|\\.key)?|directory\\.yast" // opensuse
42
44
                "|products|content(\\.asc|\\.key)?|media" // opensuse 2, are they important?
43
45
                "|packages\\.[a-zA-Z][a-zA-Z]\\.gz|info\\.txt|license\\.tar\\.gz|license\\.zip" //opensuse
 
46
                "|.*\\.db\\.tar\\.gz|.*\\.files\\.tar\\.gz|.*\\.abs\\.tar\\.gz" // Arch Linux
44
47
//    "|metalink\\?repo"     "|.*prestodelta\\.xml\\.gz" // fedora core 13, worked in the beginning and then decided to hate me
45
 
                ")$");
 
48
                ")$" // end of INFOLDER, some specific URLs?
 
49
                "|/dists/.*/installer-[^/]+/[^0-9][^/]+/images/.*"); // d-i stuff but not containing a number (year) in the revision directory (like "current", "beta", ...)
46
50
 
47
51
//string wfilepat( VPATPREFIX  "(Release|Release\\.gpg|release|meta-release|Translation[^/]*\\.bz2)$");
48
52
//string wfilepat(vfilepat);
49
 
string wfilepat(VPATPREFIX
 
53
string wfilepat(INFOLDER
50
54
                "(Release|Release\\.gpg"
51
55
                "|(Packages|Sources)"COMPRLIST"?"
52
 
                "|repomd.xml|Translation[^/]*"COMPRLIST
53
 
                "|[a-z]+32.exe$"
54
 
                ")$");
 
56
                "|Translation[^/]*"COMPRLIST // to be checked, but they should never really go anywhere
 
57
                "|MD5SUMS|SHA1SUMS"
 
58
                "|.*\\.xml" // SUSE
 
59
                "|.*\\.db\\.tar\\.gz|.*\\.files\\.tar\\.gz|.*\\.abs\\.tar\\.gz" // Arch Linux
 
60
                "|[a-z]+32.exe"
 
61
                ")$"
 
62
                "|/dists/.*/installer-.*/images/.*");
55
63
 
56
64
 
57
65
int offlinemode(false), verboselog(true), stupidfs(false), forcemanaged(false),