Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 228129 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]
Patch to add check for package name and version in SRC_URI.
0001-Added-check-for-P-in-SRC_URI-no-tests-for-check.patch (text/plain), 1.11 KB, created by
Joachim Bartosik (RETIRED)
on 2010-04-17 12:29:19 UTC
(
hide
)
Description:
Patch to add check for package name and version in SRC_URI.
Filename:
MIME Type:
Creator:
Joachim Bartosik (RETIRED)
Created:
2010-04-17 12:29:19 UTC
Size:
1.11 KB
patch
obsolete
>From 5f0f322ec88c11950d9071ed09203b6723654d5d Mon Sep 17 00:00:00 2001 >From: Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> >Date: Sat, 17 Apr 2010 14:28:21 +0200 >Subject: [PATCH] Added check for P in SRC_URI, no tests for check. > >--- > pym/repoman/checks.py | 15 +++++++++++++++ > 1 files changed, 15 insertions(+), 0 deletions(-) > >diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py >index 23f1267..6879bea 100644 >--- a/pym/repoman/checks.py >+++ b/pym/repoman/checks.py >@@ -436,6 +436,21 @@ class BuiltWithUse(LineCheck): > re = re.compile('^.*built_with_use') > error = errors.BUILT_WITH_USE > >+class PNotInSourceUri(LineCheck): >+ fail = False >+ pv = '' >+ >+ def new(self, pkg): >+ self.pv = pkg.cpv_split[1] + '.' + pkg.cpv_split[2] >+ self.re = re.compile(self.pv, re.I) >+ self.src_uri = pkg.metadata["SRC_URI"] >+ self.fail = self.re.search( self.src_uri) >+ >+ def check(self, num, line): >+ if self.fail: >+ return "SRC_URI: '" + self.src_uri + "' conntains $P: '" \ >+ + self.pv + "' but it shouldn't." >+ > # EAPI-3 checks > class Eapi3DeprecatedFuncs(LineCheck): > repoman_check_name = 'EAPI.deprecated' >-- >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