Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 229205 Details for
Bug 292394
dev-util/pkgcheck: having the value of $P in SRC_URI without using $P for it should be fatal
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Now it uses one regexp and handles comments properly.
0001-Add-check-to-repoman-P-not-SRC_URI.patch (text/plain), 1.47 KB, created by
Joachim Bartosik (RETIRED)
on 2010-04-26 09:57:15 UTC
(
hide
)
Description:
Now it uses one regexp and handles comments properly.
Filename:
MIME Type:
Creator:
Joachim Bartosik (RETIRED)
Created:
2010-04-26 09:57:15 UTC
Size:
1.47 KB
patch
obsolete
>From 7099ed94c48d29f756d3d0c33c391f24b34c33c4 Mon Sep 17 00:00:00 2001 >From: Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> >Date: Mon, 26 Apr 2010 10:16:19 +0200 >Subject: [PATCH 1/2] Add check to repoman ( P not SRC_URI). > >--- > pym/repoman/checks.py | 10 +++++++++- > 1 files changed, 9 insertions(+), 1 deletions(-) > >diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py >index 23f1267..d7e93f5 100644 >--- a/pym/repoman/checks.py >+++ b/pym/repoman/checks.py >@@ -436,6 +436,14 @@ class BuiltWithUse(LineCheck): > re = re.compile('^.*built_with_use') > error = errors.BUILT_WITH_USE > >+class PNotInSourceUri(LineCheck): >+ def new(self, pkg): >+ src_uri_head = '\A\s*SRC_URI\s*=\s*".*' >+ src_uri_tail = '.*"\s*\#?.*\Z' >+ pv = pkg.cpv_split[1] + '.' + pkg.cpv_split[2] >+ self.re = re.compile(src_uri_head + pv + src_uri_tail, re.I) >+ self.error = "SRC_URI contains something really similar to expanded value of $P." >+ > # EAPI-3 checks > class Eapi3DeprecatedFuncs(LineCheck): > repoman_check_name = 'EAPI.deprecated' >@@ -496,7 +504,7 @@ _constant_checks = tuple((c() for c in ( > EbuildPatches, EbuildQuotedA, EapiDefinition, > IUseUndefined, InheritAutotools, > EMakeParallelDisabled, EMakeParallelDisabledViaMAKEOPTS, NoAsNeeded, >- DeprecatedBindnowFlags, SrcUnpackPatches, WantAutoDefaultValue, >+ DeprecatedBindnowFlags,PNotInSourceUri, SrcUnpackPatches, WantAutoDefaultValue, > SrcCompileEconf, Eapi3DeprecatedFuncs, > Eapi4IncompatibleFuncs, Eapi4GoneVars, BuiltWithUse))) > >-- >1.7.0.4 >
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 292394
:
228129
|
228131
|
228133
|
229023
|
229025
|
229027
|
229205
|
229207
|
229427
|
229429
|
229431
|
229433