[dak/master] small fixes

View: New views
1 Messages — Rating Filter:   Alert me  

[dak/master] small fixes

by Mark Hymers-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Signed-off-by: Mark Hymers <mhy@...>
---
 daklib/dbconn.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/daklib/dbconn.py b/daklib/dbconn.py
index 701f131..7333b61 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
--
1.6.3.3


--
To UNSUBSCRIBE, email to debian-dak-request@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...