Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 74446 Details for
Bug 114948
repoman should validate whitespace around operators in metadata strings
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Make repoman validate whitespace around operators in metadata strings
portage-repoman-whitespace-around-pipes-and-parens.patch (text/plain), 952 bytes, created by
chkno
on 2005-12-10 10:53:03 UTC
(
hide
)
Description:
Make repoman validate whitespace around operators in metadata strings
Filename:
MIME Type:
Creator:
chkno
Created:
2005-12-10 10:53:03 UTC
Size:
952 bytes
patch
obsolete
>--- portage-2.0.53/bin/repoman.orig 2005-12-10 10:12:31.000000000 -0800 >+++ portage-2.0.53/bin/repoman 2005-12-10 10:47:45.000000000 -0800 >@@ -964,6 +964,27 @@ > baddepsyntax = True > else: > badlicsyntax = True >+ for word in mydepstr.split(): >+ if word == "(" or word == ")" or word == "||": >+ continue >+ failed = False >+ if string.find(word, "(") != -1: >+ failed = True >+ token = "(" >+ if string.find(word, ")") != -1: >+ failed = True >+ token = ")" >+ if string.find(word, "|") != -1: >+ failed = True >+ token = "||" >+ if failed: >+ stats[mytype+".syntax"] += 1 >+ fails[mytype+".syntax"].append(catpkg+".ebuild "+mytype+": Needs whitespace around "+token) >+ if mytype != "LICENSE": >+ baddepsyntax = True >+ else: >+ badlicsyntax = True >+ break > try: > # Missing closing parenthesis will result in a ValueError > mydeplist=portage_dep.paren_reduce(mydepstr)
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 114948
:
74361
| 74446