]> git.decadent.org.uk Git - dak.git/commitdiff
oops, forgot some changes to contents.py
authorMike O'Connor <stew@vireo.org>
Wed, 18 Feb 2009 14:19:47 +0000 (09:19 -0500)
committerMike O'Connor <stew@vireo.org>
Wed, 18 Feb 2009 14:19:47 +0000 (09:19 -0500)
* fix to find the header from dak.conf
* had forgotten the change for lowercase packagesnames in daklib/

Signed-off-by: Mike O'Connor <stew@vireo.org>
config/debian/dak.conf
dak/contents.py

index a31fbfbfa14002b5d023f089352521be6d89181a..63764997cd3f96dff17e36868380b9790f3ccec1 100644 (file)
@@ -856,7 +856,7 @@ Urgency
   };
 };
 
-Content
+Contents
 {
   Header "contents";
 }
\ No newline at end of file
index 2e1d05dcfad4d2b9145b4652cce7a265b5451430..519ebba846bbb50e734f36ae2fd1556589033dec 100644 (file)
@@ -42,8 +42,8 @@ import math
 import gzip
 import apt_pkg
 from daklib import utils
-from daklib.Config import Config
-from daklib.DBConn import DBConn
+from daklib.config import Config
+from daklib.dbconn import DBConn
 ################################################################################
 
 def usage (exit_code=0):
@@ -83,7 +83,6 @@ OPTIONS
 
 options_prefix = "Contents"
 options_prefix = "%s::Opitons" % options_prefix
-header_prefix = "%s::Header" % options_prefix
 
 log = logging.getLogger()
 
@@ -163,12 +162,14 @@ class Contents(object):
                     h = open(os.path.join( Config()["Dir::Templates"],
                                            Config()["Contents::Header"] ), "r")
                     self.header = h.read()
+                    print( "header: %s" % self.header )
                     h.close()
                 except:
                     log.error( "error openeing header file: %d\n%s" % (Config()["Contents::Header"],
                                                                        traceback.format_exc() ))
                     self.header = False
             else:
+                print( "no header" )
                 self.header = False
 
         return self.header
@@ -269,7 +270,6 @@ class Contents(object):
         # Get our suites, and the architectures
         for suite in [i.lower() for i in suites]:
             suite_id = DBConn().get_suite_id(suite)
-
             arch_list = self._arches(cursor, suite_id)
 
             arch_all_id = DBConn().get_architecture_id("all")