Check for greater not unequal when looking for a new upstream version
authorGuido Günther <agx@sigxcpu.org>
Wed, 18 Aug 2010 15:54:26 +0000 (17:54 +0200)
committerGuido Günther <agx@sigxcpu.org>
Wed, 18 Aug 2010 15:54:26 +0000 (17:54 +0200)
git-dch

diff --git a/git-dch b/git-dch
index 07c8789..0089529 100755 (executable)
--- a/git-dch
+++ b/git-dch
@@ -127,7 +127,7 @@ def add_changelog_section(msg, distribution, repo, options, cp,
                 if options.verbose:
                     print "Found %s." % upstream
                 new_version = "%s-1" % upstream
-                if compare_versions(upstream, cp['Version']):
+                if compare_versions(upstream, cp['Version']) > 0:
                     version['version'] = new_version
         except GitRepository:
             if options.verbose: