From 0154a7785441afafbadf4ac42704390110a55bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Wed, 16 Oct 2013 09:31:26 +0200 Subject: [PATCH] Import magic only at build time --- fdroidserver/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 71918f27..0a598282 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -23,7 +23,6 @@ import subprocess import time import operator import cgi -import magic def getvcs(vcstype, remote, local, sdk_path): if vcstype == 'git': @@ -1591,6 +1590,7 @@ def scan_source(build_dir, root_dir, thisbuild): ignore = [] # Iterate through all files in the source code... + import magic with magic.Magic(flags=magic.MAGIC_MIME_TYPE) as m: for r,d,f in os.walk(build_dir): for curfile in f: