From: Joerg Jaspert Date: Fri, 1 Jan 2010 10:36:45 +0000 (+0100) Subject: queue X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d71e228feb8fd3041c846b713c0d348eec20a34;p=dak queue partly back out the previous commit, keep the conditional on source, we only extract the info on source uploads. Signed-off-by: Joerg Jaspert --- diff --git a/daklib/queue.py b/daklib/queue.py index 76d19c16..00238102 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -1944,14 +1944,15 @@ distribution.""" ## Helper stuff for DebBugs Version Tracking if cnf.Find("Dir::Queue::BTSVersionTrack"): - (fd, temp_filename) = utils.temp_filename(cnf["Dir::Queue::BTSVersionTrack"], prefix=".") - version_history = os.fdopen(fd, 'w') - version_history.write(self.pkg.dsc["bts changelog"]) - version_history.close() - filename = "%s/%s" % (cnf["Dir::Queue::BTSVersionTrack"], - self.pkg.changes_file[:-8]+".versions") - os.rename(temp_filename, filename) - os.chmod(filename, 0644) + if self.pkg.changes["architecture"].has_key("source"): + (fd, temp_filename) = utils.temp_filename(cnf["Dir::Queue::BTSVersionTrack"], prefix=".") + version_history = os.fdopen(fd, 'w') + version_history.write(self.pkg.dsc["bts changelog"]) + version_history.close() + filename = "%s/%s" % (cnf["Dir::Queue::BTSVersionTrack"], + self.pkg.changes_file[:-8]+".versions") + os.rename(temp_filename, filename) + os.chmod(filename, 0644) # Write out the binary -> source mapping. (fd, temp_filename) = utils.temp_filename(cnf["Dir::Queue::BTSVersionTrack"], prefix=".")