From e54669f1fd985f194218658e9515038a073690e8 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Thu, 31 Dec 2009 22:07:18 +0100 Subject: [PATCH] daklib/queue drop the condition on bts-changelog and source upload. bts -> old old comment says it should have been done years ago source -> don says bts has no problem with it getting the files always. maybe this "fixes" the bug where we not write .versions for all uploads, just some. seemingly random. maybe it just gets is to backtrace lots. lets see, a surprise for the new year. Signed-off-by: Joerg Jaspert --- daklib/queue.py | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/daklib/queue.py b/daklib/queue.py index 72804059..76d19c16 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -1944,22 +1944,14 @@ distribution.""" ## Helper stuff for DebBugs Version Tracking if cnf.Find("Dir::Queue::BTSVersionTrack"): - # ??? once queue/* is cleared on *.d.o and/or reprocessed - # the conditionalization on dsc["bts changelog"] should be - # dropped. - - # Write out the version history from the changelog - if self.pkg.changes["architecture"].has_key("source") and \ - self.pkg.dsc.has_key("bts changelog"): - - (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) + (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=".") -- 2.39.5