Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 367838 Details for
Bug 379491
repoman should warn or throw an error if new phases are defined in old EAPI ebuilds
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
repoman_check_undefined_funcs.patch
repoman_check_undefined_funcs.patch (text/plain), 1.42 KB, created by
Chris Reffett (RETIRED)
on 2014-01-14 15:12:03 UTC
(
hide
)
Description:
repoman_check_undefined_funcs.patch
Filename:
MIME Type:
Creator:
Chris Reffett (RETIRED)
Created:
2014-01-14 15:12:03 UTC
Size:
1.42 KB
patch
obsolete
>diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py >index 85aa065..5c55b0d 100644 >--- a/pym/repoman/checks.py >+++ b/pym/repoman/checks.py >@@ -731,6 +731,21 @@ class DeprecatedHasq(LineCheck): > re = re.compile(r'(^|.*\b)hasq\b') > error = errors.HASQ_ERROR > >+# EAPI <2 checks >+class Eapi01UndefinedPhases(LineCheck): >+ repoman_check_name = 'EAPI.incompatible' >+ src_configprepare_re = re.compile(r'\s*src_(configure|prepare)\s*\(\)') >+ >+ def check_eapi(self, eapi): >+ return eapi in ('0', '1') >+ >+ def check(self, num, line): >+ m = self.src_configprepare__re.match(line) >+ if m is not None: >+ return ("%s" % m.group(1)) + \ >+ " phase is not defined in EAPI=0/1 on line: %d" >+ >+ > # EAPI-3 checks > class Eapi3DeprecatedFuncs(LineCheck): > repoman_check_name = 'EAPI.deprecated' >@@ -745,6 +760,20 @@ class Eapi3DeprecatedFuncs(LineCheck): > return ("'%s'" % m.group(1)) + \ > " has been deprecated in EAPI=3 on line: %d" > >+# EAPI <4 checks >+class Eapi0123UndefinedPhases(LineCheck): >+ repoman_check_name = 'EAPI.incompatible' >+ pkg_pretend_re = re.compile(r'\s*pkg_pretend\s*\(\)') >+ >+ def check_eapi(self, eapi): >+ return eapi in ('0', '1', '2', '3') >+ >+ def check(self, num, line): >+ m = self.pkg_pretend_re.match(line) >+ if m is not None: >+ return ("%s" % m.group(1)) + \ >+ " phase is not defined in EAPI < 4 on line: %d" >+ > # EAPI-4 checks > class Eapi4IncompatibleFuncs(LineCheck): > repoman_check_name = 'EAPI.incompatible'
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 379491
: 367838