From d4c5043ef89d320086c6dafb946039cc96a3792c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 12 May 2010 14:00:22 -0700 Subject: =?UTF-8?q?Bug=20270108=20-=20Trigger=20ebuild.invalidname=20if=20?= =?UTF-8?q?a=20version=20contains=20more=20than=2018=20digits.=20Thanks=20?= =?UTF-8?q?to=20Ulrich=20M=C3=BCller=20=20for=20this=20patch.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/repoman | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin/repoman') diff --git a/bin/repoman b/bin/repoman index 8220a8cc9..7b23aa37f 100755 --- a/bin/repoman +++ b/bin/repoman @@ -76,6 +76,7 @@ util.initialize_logger() max_desc_len = 100 allowed_filename_chars="a-zA-Z0-9._-+:" disallowed_filename_chars_re = re.compile(r'[^a-zA-Z0-9._\-+:]') +pv_toolong_re = re.compile(r'[0-9]{19,}') bad = create_color_func("BAD") # A sane umask is needed for files that portage creates. @@ -1377,7 +1378,9 @@ for x in scanlist: stats["ebuild.notadded"]=stats["ebuild.notadded"]+1 fails["ebuild.notadded"].append(x+"/"+y+".ebuild") myesplit=portage.pkgsplit(y) - if myesplit is None or myesplit[0] != x.split("/")[-1]: + if myesplit is None or myesplit[0] != x.split("/")[-1] \ + or pv_toolong_re.search(myesplit[1]) \ + or pv_toolong_re.search(myesplit[2]): stats["ebuild.invalidname"]=stats["ebuild.invalidname"]+1 fails["ebuild.invalidname"].append(x+"/"+y+".ebuild") continue -- cgit v1.2.3-1-g7c22