[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master 4/8] bugfixes



Signed-off-by: Torsten Werner <twerner@debian.org>
---
 dak/contents.py    |    7 ++++---
 daklib/contents.py |    2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/dak/contents.py b/dak/contents.py
index efe9a14..bc761f4 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 dffb425..8c06422 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.
     '''
-- 
1.7.2.5



Reply to: