From 07bf75ac7e47123f0af1e34d11179328acc3bb7c Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Dec 08 2011 18:34:34 +0000 Subject: Fix typo, valid without 'e' (I was thinking of a French word) --- diff --git a/tests/z_centos_pkg/centos_rpm_checker.py b/tests/z_centos_pkg/centos_rpm_checker.py index 0605c68..feab4e7 100644 --- a/tests/z_centos_pkg/centos_rpm_checker.py +++ b/tests/z_centos_pkg/centos_rpm_checker.py @@ -6,7 +6,7 @@ import rpm import sys import re -def is_valide_changelog_entry(entry): +def is_valid_changelog_entry(entry): regex = re.compile(r"\w+\ ?\w*\ ?<\b[\w\.-]+@[\w\.-]+\.\w{2,4}\b>\ ?-?\ ?[\w_\.]+-[\w_\.]+") if regex.match(entry) is None: return False @@ -32,7 +32,7 @@ def main(): ret=False try: changelog = hdr['changelogname'][0] - if not is_valide_changelog_entry(changelog): + if not is_valid_changelog_entry(changelog): print " Bad changelog entry in: %s" % hdr['name'] ret=False except Exception, e: