From bc43bccd6fb79c6612df10349448f928d3895cb4 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sat, 8 Jan 2011 16:58:12 +0000 Subject: add other extentions for binary files --- RepSys/binrepo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'RepSys') 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) -- cgit v1.2.1