Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 114184 Details for
Bug 171962
Make repoman check ChangeLog syntax
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
check_changelog.py
changelog.py (text/plain), 845 bytes, created by
Petteri Räty (RETIRED)
on 2007-03-23 21:26:29 UTC
(
hide
)
Description:
check_changelog.py
Filename:
MIME Type:
Creator:
Petteri Räty (RETIRED)
Created:
2007-03-23 21:26:29 UTC
Size:
845 bytes
patch
obsolete
>#!/usr/bin/python >import sys >import re > ># Match the <day> <month> <year> format we use to find ># where entries begin >date_regex = re.compile("\d{2} \w{3} \d{4};") > >ebuild_regex = re.compile("\+\S+\.ebuild") > >def check_changelog(file): > f = open(file) > lines = f.readlines() > n=0 > length = len(lines) > while n < length: > line = lines[n] > if date_regex.search(line): > while True: > for m in ebuild_regex.findall(line): > # remove + and trailing .ebuild > to_find = m[1:-7] > i = n-1 > match = False > while i >= 0 and not match: > match = lines[i].startswith("*" + to_find) > i-=1 > if not match: > print file + " is broken (new ebuild on line " + str(n+1) + ")" > n+=1 > if line.find(":") >= 0 or n == length: > break > line = lines[n] > n+=1 > f.close() > >for ch in sys.argv[1:]: > check_changelog(ch)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 171962
:
114184
|
114194
|
114220