]> err.no Git - dak/commitdiff
Rename ContentsScanner to BinaryContentsScanner.
authorTorsten Werner <twerner@debian.org>
Wed, 23 Mar 2011 18:02:48 +0000 (19:02 +0100)
committerTorsten Werner <twerner@debian.org>
Wed, 23 Mar 2011 18:02:48 +0000 (19:02 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
dak/contents.py
daklib/contents.py
tests/dbtest_contents.py

index d763f869ab094bc2feb1aee15c02872756e11478..ff3a97d5bfc69756981c23b238d56db66a51f756 100755 (executable)
@@ -40,7 +40,7 @@ import apt_pkg
 
 from daklib.config import Config
 from daklib.dbconn import *
-from daklib.contents import ContentsScanner, ContentsWriter
+from daklib.contents import BinaryContentsScanner, ContentsWriter
 from daklib import daklog
 from daklib import utils
 
@@ -84,7 +84,7 @@ def write_all(cnf, suite_names = [], force = None):
 
 def scan_all(cnf, limit):
     Logger = daklog.Logger(cnf.Cnf, 'contents scan')
-    result = ContentsScanner.scan_all(limit)
+    result = BinaryContentsScanner.scan_all(limit)
     processed = '%(processed)d packages processed' % result
     remaining = '%(remaining)d packages remaining' % result
     Logger.log([processed, remaining])
index a158e8fcd4bb7d2ed27e8547b79b03d1cbd84b8a..df571e10ac962dd1114008bc19baae4fe0ae704c 100755 (executable)
@@ -258,10 +258,10 @@ def generate_helper(suite_id, arch_id, overridetype_id, component_id = None):
     return log_message
 
 
-class ContentsScanner(object):
+class BinaryContentsScanner(object):
     '''
-    ContentsScanner provides a threadsafe method scan() to scan the contents of
-    a DBBinary object.
+    BinaryContentsScanner provides a threadsafe method scan() to scan the
+    contents of a DBBinary object.
     '''
     def __init__(self, binary_id):
         '''
@@ -313,7 +313,7 @@ def scan_helper(binary_id):
     '''
     This function runs in a subprocess.
     '''
-    scanner = ContentsScanner(binary_id)
+    scanner = BinaryContentsScanner(binary_id)
     scanner.scan()
 
 
index 90fe49666484a6e35ee19ac688fe0a440f7dfc4b..957307ba4d1bbd9e6b5408426aabbd5bb45716b7 100755 (executable)
@@ -3,7 +3,7 @@
 from db_test import DBDakTestCase, fixture
 
 from daklib.dbconn import *
-from daklib.contents import ContentsWriter, ContentsScanner, UnpackedSource
+from daklib.contents import ContentsWriter, BinaryContentsScanner, UnpackedSource
 
 from os.path import normpath
 from sqlalchemy.exc import FlushError, IntegrityError
@@ -167,7 +167,7 @@ class ContentsTestCase(DBDakTestCase):
         self.assertEqual(['usr/bin/hello', 'usr/share/doc/hello/copyright'],
             filelist)
         self.session.commit()
-        ContentsScanner(self.binary['hello_2.2-1_i386'].binary_id).scan()
+        BinaryContentsScanner(self.binary['hello_2.2-1_i386'].binary_id).scan()
         bin_contents_list = self.binary['hello_2.2-1_i386'].contents.order_by('file').all()
         self.assertEqual(2, len(bin_contents_list))
         self.assertEqual('usr/bin/hello', bin_contents_list[0].file)