aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-01-09 01:58:50 +0000
committerNicolas Vigier <boklm@mageia.org>2011-01-09 01:58:50 +0000
commit4f7884d84ba4948d4df1ec94f679530a37e16591 (patch)
tree96af61e1a9f5d3d687810b8628ad30170c0c09f8 /RepSys
parentbc43bccd6fb79c6612df10349448f928d3895cb4 (diff)
downloadmgarepo-4f7884d84ba4948d4df1ec94f679530a37e16591.tar
mgarepo-4f7884d84ba4948d4df1ec94f679530a37e16591.tar.gz
mgarepo-4f7884d84ba4948d4df1ec94f679530a37e16591.tar.bz2
mgarepo-4f7884d84ba4948d4df1ec94f679530a37e16591.tar.xz
mgarepo-4f7884d84ba4948d4df1ec94f679530a37e16591.zip
add more binary files extentions
Diffstat (limited to 'RepSys')
-rw-r--r--RepSys/binrepo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/RepSys/binrepo.py b/RepSys/binrepo.py
index d1768ea..a978b51 100644
--- a/RepSys/binrepo.py
+++ b/RepSys/binrepo.py
@@ -108,7 +108,7 @@ def is_binary(path):
"\.(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|wav|mp3|ogg|"\
- "jpg|png|gif)$")
+ "jpg|png|gif|avi|mpg|mpeg|rar)$")
maxsize = config.getint("binrepo", "upload-match-size", "1048576") # 1MiB
expr = re.compile(raw)
name = os.path.basename(path)