Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 226685 Details for
Bug 310475
Introduction of app-portage/epm-1.33 'declare ...' prefaced assignments in environment.bz2 prevents epm from identifying (key,value) pairs
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
smaller patch to fix environment.bz2 handling
epm-1.33-env.patch (text/plain), 949 bytes, created by
Alexander Miller
on 2010-04-06 03:57:56 UTC
(
hide
)
Description:
smaller patch to fix environment.bz2 handling
Filename:
MIME Type:
Creator:
Alexander Miller
Created:
2010-04-06 03:57:56 UTC
Size:
949 bytes
patch
obsolete
>--- old/epm >+++ new/epm >@@ -189,7 +189,7 @@ > my ($p) = @_; > my ($group, $ename) = $p =~ /^(.+?)\/(.+)$/; > my ($key, $value); >- my %vals; >+ my %vals = map {$_, '(n/a)'} qw/CATEGORY HOSTNAME DESCRIPTION HOMEPAGE LICENSE NAME RELEASE VERSION URL SLOT PACKAGER/; > my $ldbpath = "$dbpath/$p"; > my $fmt = <<EOT; > Name : \%s >@@ -206,7 +206,7 @@ > open(F, "bzcat $ldbpath/environment.bz2|") > or die "epm: Can't open $ldbpath/environment.bz2: $!\n"; > while (<F>) { >- next unless (/^(CATEGORY|HOSTNAME|DESCRIPTION|HOMEPAGE|LICENSE|PN|PR|PV|SLOT)=(.*)/); >+ next unless (/^(?:declare\s+(?:-[x-]\s+)*)?(CATEGORY|HOSTNAME|DESCRIPTION|HOMEPAGE|LICENSE|PN|PR|PV|SLOT)=(.*)/); > ($key, $value) = ($1, $2); > if ($key eq 'PN') { > $key = 'NAME'; >@@ -221,6 +221,7 @@ > } > # Clean up the double and single quotes > $value =~ s/^'(.*)'$/$1/o; >+ $value =~ s/^"(.*)"$/$1/o; > $value =~ s/'\\''/'/go; > $value =~ s/\\"/"/go; >
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 310475
:
225777
|
226685
|
226687