Do not index ChangeLog entries with an invalid CPV. (Bug 375293)
authorPaul Varner <fuzzyray@gentoo.org>
Fri, 15 Jul 2011 19:59:23 +0000 (14:59 -0500)
committerPaul Varner <fuzzyray@gentoo.org>
Fri, 15 Jul 2011 19:59:23 +0000 (14:59 -0500)
pym/gentoolkit/helpers.py

index 225a1989e175929d2c3cdaf68bedacae67685714..a0b29abdd9f5f37ed713a137e91c677c3e721317 100644 (file)
@@ -175,7 +175,7 @@ class ChangeLog(object):
                        if not pkg_name.strip():
                                continue
                        try:
-                               entry_ver = CPV(pkg_name)
+                               entry_ver = CPV(pkg_name, validate=True)
                        except errors.GentoolkitInvalidCPV:
                                if self.invalid_entry_is_fatal:
                                        raise ValueError(entry_ver)