Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 229023 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]
Checks each line if it contains SRC_URI it checks if the line contains something similar to (expanded) $P.
0001-Check-to-repoman.patch (text/plain), 1.49 KB, created by
Joachim Bartosik (RETIRED)
on 2010-04-24 20:00:42 UTC
(
hide
)
Description:
Checks each line if it contains SRC_URI it checks if the line contains something similar to (expanded) $P.
Filename:
MIME Type:
Creator:
Joachim Bartosik (RETIRED)
Created:
2010-04-24 20:00:42 UTC
Size:
1.49 KB
patch
obsolete
>From 637371435f51099aad1b5dba0fee192e62cc0326 Mon Sep 17 00:00:00 2001 >From: Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> >Date: Sat, 24 Apr 2010 21:56:52 +0200 >Subject: [PATCH 1/2] Check to repoman. > >--- > pym/repoman/checks.py | 13 ++++++++++++- > 1 files changed, 12 insertions(+), 1 deletions(-) > >diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py >index 23f1267..25e5bfa 100644 >--- a/pym/repoman/checks.py >+++ b/pym/repoman/checks.py >@@ -436,6 +436,17 @@ class BuiltWithUse(LineCheck): > re = re.compile('^.*built_with_use') > error = errors.BUILT_WITH_USE > >+class PNotInSourceUri(LineCheck): >+ src_uri_re = re.compile('\A\s*SRC_URI\s*=\s*".*"\s*\Z') >+ >+ def new(self, pkg): >+ pv = pkg.cpv_split[1] + '.' + pkg.cpv_split[2] >+ self.re = re.compile( pv, re.I) >+ >+ def check(self, num, line): >+ if self.src_uri_re.match(line) and self.re.search(line): >+ return "SRC_URI contains something really similar to expanded value of $P." >+ > # EAPI-3 checks > class Eapi3DeprecatedFuncs(LineCheck): > repoman_check_name = 'EAPI.deprecated' >@@ -496,7 +507,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