]> git.decadent.org.uk Git - dak.git/blobdiff - jenna
2004-04-19 James Troup <james@nocrew.org> * jennifer (check_source): handle failure...
[dak.git] / jenna
diff --git a/jenna b/jenna
index 50bed8fe12fda9883cdfc1e98ff09dac0535a258..dde4388d8abe668547c027beeab8440d6b382975 100755 (executable)
--- a/jenna
+++ b/jenna
@@ -1,8 +1,8 @@
 #!/usr/bin/env python
 
 # Generate file lists used by apt-ftparchive to generate Packages and Sources files
-# Copyright (C) 2000, 2001, 2002, 2003  James Troup <james@nocrew.org>
-# $Id: jenna,v 1.25 2003-05-02 13:53:57 troup Exp $
+# Copyright (C) 2000, 2001, 2002, 2003, 2004  James Troup <james@nocrew.org>
+# $Id: jenna,v 1.27 2004-02-27 20:07:40 troup Exp $
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -288,7 +288,7 @@ def write_filelists(packages, dislocated_files):
         if not Options["Component"]:
             components = Cnf.ValueList("Suite::%s::Components" % (suite));
         else:
-            components = Options["Components"].split();
+            components = Options["Component"].split();
         udeb_components = Cnf.ValueList("Suite::%s::UdebComponents" % (suite));
         udeb_components = udeb_components;
         for component in components:
@@ -350,7 +350,11 @@ def stable_dislocation_p():
         return 1;
     # Otherwise, look in what suites the user specified
     suites = Options["Suite"].split();
-    return suites.count("stable");
+
+    if "stable" in suites:
+        return 1;
+    else:
+        return 0;
 
 ################################################################################
 
@@ -417,7 +421,7 @@ def main():
     projectB = pg.connect(Cnf["DB::Name"], Cnf["DB::Host"], int(Cnf["DB::Port"]));
     db_access.init(Cnf, projectB);
     Logger = logging.Logger(Cnf, "jenna");
-    utils.try_with_debug(do_da_do_da);
+    do_da_do_da();
     Logger.close();
 
 #########################################################################################