]> err.no Git - dak/commitdiff
bugfixes
authorTorsten Werner <twerner@debian.org>
Wed, 23 Mar 2011 19:27:48 +0000 (19:27 +0000)
committerTorsten Werner <twerner@debian.org>
Wed, 23 Mar 2011 19:27:48 +0000 (19:27 +0000)
Signed-off-by: Torsten Werner <twerner@debian.org>
dak/contents.py
daklib/contents.py

index efe9a1496c8106b29c2c9b5254a4b518a8188c99..bc761f4f488b756794eed65ce1bd207824f4bec5 100755 (executable)
@@ -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
 
index dffb425e3cc2e5f8c5245de9e209fdaaa7a1f454..8c064226273be24d7e61c9b6831ade590bd6aadb 100755 (executable)
@@ -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.
     '''