~vila/udd/717204-stop-too-fast

« back to all changes in this revision

Viewing changes to import_package.py

  • Committer: James Westby
  • Date: 2010-10-27 17:49:50 UTC
  • Revision ID: james.westby@linaro.org-20101027174950-3ef978uyvyuatg3l
Remove tags after a collision so that we aren't trying to re-import versions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
564
564
    update_db = make_db_set(temp_dir, importp.name, importp.distro,
565
565
            importp.release, importp.pocket, updates_branch, bstore,
566
566
            possible_transports=possible_transports)
 
567
    # We remove any tag as it will only be there if there was a
 
568
    # collision, and then we need to remove the old tag to import
 
569
    # and set the tag for the new revision.
 
570
    # TODO: move the delete_tag in to a method on DistributionBranch.
 
571
    if update_db.has_version(importp.version):
 
572
        update_db.branch.tags.delete_tag(importp.version)
567
573
    if created_updates_branch:
568
574
        # Set the root id to be the same as another branch.
569
575
        other_branches = update_db.get_other_branches()