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
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
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", ...)
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
56
"|Translation[^/]*"COMPRLIST // to be checked, but they should never really go anywhere
59
"|.*\\.db\\.tar\\.gz|.*\\.files\\.tar\\.gz|.*\\.abs\\.tar\\.gz" // Arch Linux
62
"|/dists/.*/installer-.*/images/.*");
57
65
int offlinemode(false), verboselog(true), stupidfs(false), forcemanaged(false),