--- file_not_specified_in_diff +++ file_not_specified_in_diff @@ -, +, @@ --- bin/repoman~ +++ bin/repoman @@ -88,6 +88,7 @@ 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. @@ -1353,7 +1354,9 @@ 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