Traceback (most recent call last):
File "/srv/package-import.canonical.com/new/scripts/import_package.py", line 1104, in <module>
no_existing=options.no_existing))
File "/srv/package-import.canonical.com/new/scripts/import_package.py", line 1034, in main
import_package(temp_dir, importp, revid_db, bstore, possible_transports=possible_transports)
File "/srv/package-import.canonical.com/new/scripts/import_package.py", line 632, in import_package
use_time_from_changelog=True)
File "/srv/package-import.canonical.com/new/scripts/plugins/builddeb/import_dsc.py", line 1354, in import_package
"Trying to import version %s again" % str(version)
AssertionError: Trying to import version 0.6.4-0ubuntu3 again
http://package-import.ubuntu.com/status/desktopcouch.html
http://package-import.ubuntu.com/status/flash-kernel.html
http://package-import.ubuntu.com/status/man-db.html
http://package-import.ubuntu.com/status/plymouth.html
This looks like a failure where we started working with Version objects, rather than version strings.
Looking at the import_dsc code it does:
def has_version( version) : name(version)
tag_name = self.tag_
Which is a cast via 'str(version)'
However, the outer code does this:
if update_ db.branch. tags.has_ tag(importp. version) :
in bzrlib, '.has_tag(x)' is just (return x in self.get_ tag_dict( ))
And the Version object doesn't match the str() object in a dict.
The simple fix looks like just using db.tag_ name(importp. version) db.branch. tags.has_ tag(tag_ version) :
update_ db.branch. tags.delete_ tag(tag_ version)
tag_version = update_
if update_