aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2011-01-10 12:41:12 +0000
committerPascal Terjan <pterjan@mageia.org>2011-01-10 12:41:12 +0000
commit715e125cc8d0b3fc4a79752e28a8b76a4ce97d5a (patch)
tree83f8da10d983b60e0d13c97a53ab12b1fc2eb770 /RepSys
parentb01549f07cbd75c71270117ef003cba1d16d08b7 (diff)
downloadmgarepo-715e125cc8d0b3fc4a79752e28a8b76a4ce97d5a.tar
mgarepo-715e125cc8d0b3fc4a79752e28a8b76a4ce97d5a.tar.gz
mgarepo-715e125cc8d0b3fc4a79752e28a8b76a4ce97d5a.tar.bz2
mgarepo-715e125cc8d0b3fc4a79752e28a8b76a4ce97d5a.tar.xz
mgarepo-715e125cc8d0b3fc4a79752e28a8b76a4ce97d5a.zip
PNG is a binary file
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 a978b51..4035128 100644
--- a/RepSys/binrepo.py
+++ b/RepSys/binrepo.py
@@ -106,7 +106,7 @@ def translate_topdir(path):
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|"\
+ "pdf|pgn\\.gz|pk3|png|rpm|run|sdz|smzip|tar|tbz|"\
"tbz2|tgz|ttf|uqm|wad|war|xar|xpi|xz|zip|wav|mp3|ogg|"\
"jpg|png|gif|avi|mpg|mpeg|rar)$")
maxsize = config.getint("binrepo", "upload-match-size", "1048576") # 1MiB