aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-01-08 16:58:12 +0000
committerNicolas Vigier <boklm@mageia.org>2011-01-08 16:58:12 +0000
commitbc43bccd6fb79c6612df10349448f928d3895cb4 (patch)
tree7be2393e62dee6b5ca0eb9a4963ba89907246e23 /RepSys
parenta1437ef116656a27412b0d6b39da7b6a2b21747a (diff)
downloadmgarepo-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.py3
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)