Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 207441 Details for
Bug 227225
repoman should not allow using the ~ operator with an explicit revision
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-repoman-warning-for-useless-with-revision-usage.patch
0001-repoman-warning-for-useless-with-revision-usage.patch (text/plain), 1.90 KB, created by
David Leverton
on 2009-10-17 23:38:46 UTC
(
hide
)
Description:
0001-repoman-warning-for-useless-with-revision-usage.patch
Filename:
MIME Type:
Creator:
David Leverton
Created:
2009-10-17 23:38:46 UTC
Size:
1.90 KB
patch
obsolete
>From 57af390463333f6bca77d3310093ebc9212e64d3 Mon Sep 17 00:00:00 2001 >From: David Leverton <levertond@googlemail.com> >Date: Sun, 18 Oct 2009 00:37:13 +0100 >Subject: [PATCH] repoman warning for useless ~ with revision usage > >--- > bin/repoman | 10 ++++++++++ > 1 files changed, 10 insertions(+), 0 deletions(-) > >diff --git a/bin/repoman b/bin/repoman >index c764aed..8e50a57 100755 >--- a/bin/repoman >+++ b/bin/repoman >@@ -295,6 +295,9 @@ qahelp={ > "DEPEND.syntax":"Syntax error in DEPEND (usually an extra/missing space/parenthesis)", > "RDEPEND.syntax":"Syntax error in RDEPEND (usually an extra/missing space/parenthesis)", > "PDEPEND.syntax":"Syntax error in PDEPEND (usually an extra/missing space/parenthesis)", >+ "DEPEND.badtilde":"DEPEND uses the ~ dep operator with a non-zero revision part, which is useless (the revision is ignored)", >+ "RDEPEND.badtilde":"RDEPEND uses the ~ dep operator with a non-zero revision part, which is useless (the revision is ignored)", >+ "PDEPEND.badtilde":"PDEPEND uses the ~ dep operator with a non-zero revision part, which is useless (the revision is ignored)", > "LICENSE.syntax":"Syntax error in LICENSE (usually an extra/missing space/parenthesis)", > "PROVIDE.syntax":"Syntax error in PROVIDE (usually an extra/missing space/parenthesis)", > "PROPERTIES.syntax":"Syntax error in PROPERTIES (usually an extra/missing space/parenthesis)", >@@ -1502,6 +1505,13 @@ for x in scanlist: > " not supported with EAPI='%s':" + \ > " '%s'") % (mytype, eapi, atom)) > >+ if atom.operator == "~" and portage.versions.pkgsplit(atom.cpv)[2] != "r0": >+ stats[mytype + '.badtilde'] += 1 >+ fails[mytype + '.badtilde'].append( >+ (relative_path + ": %s uses the ~ operator" >+ " with a non-zero revision:" + \ >+ " '%s'") % (mytype, atom)) >+ > type_list.extend([mytype] * (len(badsyntax) - len(type_list))) > > for m,b in zip(type_list, badsyntax): >-- >1.6.4.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 227225
: 207441