]> git.decadent.org.uk Git - dak.git/blobdiff - dak/generate_packages_sources2.py
Replace os.popen with the subprocess.Popen in a few places.
[dak.git] / dak / generate_packages_sources2.py
index d941d98487d782996b4fafcf2006b2aeb32890c9..3b58217a271df20671af2d9cf949cacbb097e64b 100755 (executable)
@@ -364,7 +364,6 @@ def main():
 
     force = Options.has_key("Force") and Options["Force"]
 
-    component_ids = [ c.component_id for c in session.query(Component).all() ]
 
     def parse_results(message):
         # Split out into (code, msg)
@@ -377,9 +376,10 @@ def main():
             logger.log(['E: ', msg])
 
     for s in suites:
+        component_ids = [ c.component_id for c in s.components ]
         if s.untouchable and not force:
-            import utils
-            utils.fubar("Refusing to touch %s (untouchable and not forced)" % s.suite_name)
+            import daklib.utils
+            daklib.utils.fubar("Refusing to touch %s (untouchable and not forced)" % s.suite_name)
         for c in component_ids:
             pool.apply_async(generate_sources, [s.suite_id, c], callback=parse_results)
             if not s.include_long_description: