From: Mark Hymers Date: Wed, 4 Nov 2009 18:40:47 +0000 (+0000) Subject: small fixes X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ebcb8a5d39c21f9c05e250f2a61807d461d8b62;p=dak small fixes Signed-off-by: Mark Hymers --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 701f131f..7333b612 100644 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -503,7 +503,7 @@ class BuildQueue(object): (ac_fd, ac_name) = mkstemp() os.write(ac_fd, MINIMAL_APT_CONF % {'archivepath': self.path, 'filelist': fl_name}) - os.close() + os.close(ac_fd) # Run apt-ftparchive generate os.chdir(os.path.dirname(ac_name)) @@ -561,7 +561,7 @@ class BuildQueue(object): """WARNING: This routine commits for you""" session = DBConn().session().object_session(self) - if self.generate_metadata: + if self.generate_metadata and not dryrun: self.write_metadata(starttime) # Grab files older than our execution time