]> err.no Git - dak/commitdiff
queue
authorJoerg Jaspert <joerg@debian.org>
Fri, 1 Jan 2010 10:36:45 +0000 (11:36 +0100)
committerJoerg Jaspert <joerg@debian.org>
Fri, 1 Jan 2010 10:36:45 +0000 (11:36 +0100)
partly back out the previous commit,
keep the conditional on source, we only extract the info on source
uploads.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
daklib/queue.py

index 76d19c163ebeca1bbf4bc8391538193187b58ed7..0023810230fbf5fe94d920268d676d178c99c476 100755 (executable)
@@ -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=".")