diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-01-08 16:58:12 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-01-08 16:58:12 +0000 |
commit | bc43bccd6fb79c6612df10349448f928d3895cb4 (patch) | |
tree | 7be2393e62dee6b5ca0eb9a4963ba89907246e23 /RepSys | |
parent | a1437ef116656a27412b0d6b39da7b6a2b21747a (diff) | |
download | mgarepo-bc43bccd6fb79c6612df10349448f928d3895cb4.tar mgarepo-bc43bccd6fb79c6612df10349448f928d3895cb4.tar.gz mgarepo-bc43bccd6fb79c6612df10349448f928d3895cb4.tar.bz2 mgarepo-bc43bccd6fb79c6612df10349448f928d3895cb4.tar.xz mgarepo-bc43bccd6fb79c6612df10349448f928d3895cb4.zip |
add other extentions for binary files
Diffstat (limited to 'RepSys')
-rw-r--r-- | RepSys/binrepo.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/RepSys/binrepo.py b/RepSys/binrepo.py index 1298e35..d1768ea 100644 --- a/RepSys/binrepo.py +++ b/RepSys/binrepo.py @@ -107,7 +107,8 @@ def is_binary(path): raw = config.get("binrepo", "upload-match", "\.(7z|Z|bin|bz2|cpio|db|deb|egg|gem|gz|jar|jisp|lzma|"\ "pdf|pgn\\.gz|pk3|rpm|rpm|run|sdz|smzip|tar|tbz|"\ - "tbz2|tgz|ttf|uqm|wad|war|xar|xpi|xz|zip)$") + "tbz2|tgz|ttf|uqm|wad|war|xar|xpi|xz|zip|wav|mp3|ogg|"\ + "jpg|png|gif)$") maxsize = config.getint("binrepo", "upload-match-size", "1048576") # 1MiB expr = re.compile(raw) name = os.path.basename(path) |