X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fcontents.py;h=4a0b3ae25237fe8a0b63b25f284d9d0e31903a04;hb=8e32a7b21801472eb15b034e407ea04de053feb9;hp=b56a9c6ce322a5913c7d767b3b13ced8aae820ad;hpb=8ba1b12293e55da930cc0be48c1616723ec59088;p=dak.git diff --git a/daklib/contents.py b/daklib/contents.py index b56a9c6c..4a0b3ae2 100755 --- a/daklib/contents.py +++ b/daklib/contents.py @@ -241,7 +241,6 @@ def generate_helper(suite_id, arch_id, overridetype_id, component_id = None): ''' This function is called in a new subprocess. ''' - DBConn().reset() session = DBConn().session() suite = Suite.get(suite_id, session) architecture = Architecture.get(arch_id, session) @@ -308,15 +307,9 @@ class ContentsScanner(object): session.close() return { 'processed': processed, 'remaining': remaining } -reset = False - def scan_helper(binary_id): ''' This function runs in a subprocess. ''' - global reset - if not reset: - DBConn().reset() - reset = True scanner = ContentsScanner(binary_id) scanner.scan()