From 6ebcb8a5d39c21f9c05e250f2a61807d461d8b62 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Wed, 4 Nov 2009 18:40:47 +0000 Subject: [PATCH] small fixes Signed-off-by: Mark Hymers --- daklib/dbconn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5