Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 346732 Details for
Bug 465772
[Future EAPI] Make all directory variables *not* end with a trailing slash
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
repoman: check for [[ $ROOT == / and similar
0001-repoman-check-for-ROOT-tests.patch (text/plain), 1.21 KB, created by
Michał Górny
on 2013-04-27 21:19:03 UTC
(
hide
)
Description:
repoman: check for [[ $ROOT == / and similar
Filename:
MIME Type:
Creator:
Michał Górny
Created:
2013-04-27 21:19:03 UTC
Size:
1.21 KB
patch
obsolete
>From 42d434160f42050a1910a26b84b1990d66595ba9 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> >Date: Sat, 27 Apr 2013 19:27:10 +0200 >Subject: [PATCH 1/2] repoman: check for $ROOT [=!]= / tests. > >That is, require $ROOT tests to handle empty ROOT. >--- > pym/repoman/checks.py | 11 +++++++++++ > 1 file changed, 11 insertions(+) > >diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py >index 8c0a301..d9ce985 100644 >--- a/pym/repoman/checks.py >+++ b/pym/repoman/checks.py >@@ -822,6 +822,17 @@ class PortageInternalVariableAssignment(LineCheck): > e += ' on line: %d' > return e > >+class RootCheckTrailingSlash(LineCheck): >+ """Check ebuild for checks assuming ${ROOT} == /.""" >+ repoman_check_name = 'ebuild.minorsyn' >+ slashcheck_re = re.compile( >+ r'\[\[?\s+["\']?\${?ROOT}?["\']?\s+[=!]=\s+["\']?/["\']?\s+') >+ >+ def check(self, num, line): >+ match = self.slashcheck_re.search(line) >+ if match: >+ return "${ROOT} check should handle empty ROOT on line: %d" >+ > _base_check_classes = (InheritEclass, LineCheck, PhaseCheck) > _constant_checks = tuple(chain((v() for k, v in globals().items() > if isinstance(v, type) and issubclass(v, LineCheck) and v not in _base_check_classes), >-- >1.8.2.1 >
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 465772
:
346712
| 346732 |
346734