diff options
author | Guido Günther <agx@sigxcpu.org> | 2010-08-10 17:47:24 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2010-08-10 18:51:23 +0200 |
commit | 55fdbc67064a4f236b6d1e3ebc885f40c2c1fc44 (patch) | |
tree | cb16fd396deebab4c865703515d99b2219e9f66e /git-import-dsc | |
parent | 3c6bbd0f4992f8da91693494f1a8980a4152e564 (diff) |
Check for legacy tags where necessary.
Diffstat (limited to 'git-import-dsc')
-rwxr-xr-x | git-import-dsc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/git-import-dsc b/git-import-dsc index 3914df0c..8def4ec2 100755 --- a/git-import-dsc +++ b/git-import-dsc @@ -230,11 +230,13 @@ def main(argv): format = [(options.upstream_tag, "Upstream"), (options.debian_tag, "Debian")][src.native] tag = build_tag(format[0], src.upstream_version) msg = "%s version %s" % (format[1], src.upstream_version) - if repo.has_tag(tag) and options.ignore_same_version: - print "Tag %s already there" % tag - raise SkipImport - if not repo.has_tag(tag): + if options.ignore_same_version: + if repo.find_version(options.debian_tag, src.version): + print "Version %s already imported." % src.version + raise SkipImport + + if not repo.find_version(format[0], src.upstream_version): print "tag %s not found, importing %s tarball" % (tag, format[1]) if is_empty: branch = None |