summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2012-04-07 00:34:11 +0200
committerSebastian Pipping <sebastian@pipping.org>2012-04-07 00:34:35 +0200
commit32b6de9090156d5d8369e030d143f9d468f63e83 (patch)
treedb69f1cbf643fa6d613cc14aa26d88a4249a9977
parentNo longer count CVS metadata or copyright years as changes (diff)
downloadoverlint-32b6de9090156d5d8369e030d143f9d468f63e83.tar.gz
overlint-32b6de9090156d5d8369e030d143f9d468f63e83.tar.bz2
overlint-32b6de9090156d5d8369e030d143f9d468f63e83.zip
Fix report of 6.0-r9 as a version bump with 6.0-r3 in the Gentoo main tree alreadyv0.4
-rw-r--r--overlint/cli.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/overlint/cli.py b/overlint/cli.py
index a0720b2..d941f25 100644
--- a/overlint/cli.py
+++ b/overlint/cli.py
@@ -3,7 +3,7 @@
from __future__ import print_function
-VERSION_STR = '0.3'
+VERSION_STR = '0.4'
import sys
import os
@@ -54,6 +54,7 @@ def highest_revision_only(versions):
def find_missed_bumps(gentoo_versions, overlay_versions):
missed_version_bumps = list()
missed_revision_bumps = list()
+ gentoo_zero_revisions = set(_revision_matcher.sub('', gv) for gv in gentoo_versions)
for ov in overlay_versions:
if '999' in ov:
continue
@@ -66,7 +67,7 @@ def find_missed_bumps(gentoo_versions, overlay_versions):
break
if newer_than_gentoo:
ov_without_revision = _revision_matcher.sub('', ov)
- if ov_without_revision in gentoo_versions:
+ if ov_without_revision in gentoo_zero_revisions:
missed_revision_bumps.append(ov)
else:
missed_version_bumps.append(ov)