From: Torsten Werner Date: Wed, 23 Mar 2011 19:27:48 +0000 (+0000) Subject: bugfixes X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f98886cf4658f5634019343cae81002c122e890;p=dak bugfixes Signed-off-by: Torsten Werner --- diff --git a/dak/contents.py b/dak/contents.py index efe9a149..bc761f4f 100755 --- a/dak/contents.py +++ b/dak/contents.py @@ -40,7 +40,8 @@ import apt_pkg from daklib.config import Config from daklib.dbconn import * -from daklib.contents import BinaryContentsScanner, ContentsWriter +from daklib.contents import BinaryContentsScanner, ContentsWriter, \ + SourceContentsScanner from daklib import daklog from daklib import utils @@ -128,11 +129,11 @@ def main(): if len(options['Limit']) > 0: limit = int(options['Limit']) - if args[0] == 'binary_scan': + if args[0] == 'binary-scan': binary_scan_all(cnf, limit) return - if args[0] == 'source_scan': + if args[0] == 'source-scan': source_scan_all(cnf, limit) return diff --git a/daklib/contents.py b/daklib/contents.py index dffb425e..8c064226 100755 --- a/daklib/contents.py +++ b/daklib/contents.py @@ -426,7 +426,7 @@ class SourceContentsScanner(object): session.close() return { 'processed': processed, 'remaining': remaining } -def source_scan_helper(binary_id): +def source_scan_helper(source_id): ''' This function runs in a subprocess. '''