diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-01-06 14:51:53 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-01-06 14:51:53 +0000 |
commit | 7224fe89a330bbaf5683ffe65805e92b825c1be9 (patch) | |
tree | 892331cb0d973b4abe2addd86eb48e312e89aa30 /RepSys/binrepo.py | |
parent | 846c9e0ef180aa5411803eb1906896dc5e2fc5b9 (diff) | |
parent | 7834e87feead90422fb96705b6964c35580e3668 (diff) | |
download | mgarepo-7224fe89a330bbaf5683ffe65805e92b825c1be9.tar mgarepo-7224fe89a330bbaf5683ffe65805e92b825c1be9.tar.gz mgarepo-7224fe89a330bbaf5683ffe65805e92b825c1be9.tar.bz2 mgarepo-7224fe89a330bbaf5683ffe65805e92b825c1be9.tar.xz mgarepo-7224fe89a330bbaf5683ffe65805e92b825c1be9.zip |
To avoid confusion, Mageia repsys fork is being renamed to mgarepo
Diffstat (limited to 'RepSys/binrepo.py')
-rw-r--r--[-rwxr-xr-x] | RepSys/binrepo.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/RepSys/binrepo.py b/RepSys/binrepo.py index edca9a4..1298e35 100755..100644 --- a/RepSys/binrepo.py +++ b/RepSys/binrepo.py @@ -107,7 +107,7 @@ 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|zip)$") + "tbz2|tgz|ttf|uqm|wad|war|xar|xpi|xz|zip)$") maxsize = config.getint("binrepo", "upload-match-size", "1048576") # 1MiB expr = re.compile(raw) name = os.path.basename(path) @@ -297,6 +297,7 @@ def update_sources(topdir, added=[], removed=[]): def update_sources_threaded(*args, **kwargs): t = threading.Thread(target=update_sources, args=args, kwargs=kwargs) t.start() + t.join() return t def upload(path, message=None): |