Gentoo Archives: gentoo-commits

From: "Paul Varner (fuzzyray)" <fuzzyray@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-portage/epm/files: 1.33-epm-310475.patch
Date: Fri, 11 May 2012 21:34:03
Message-Id: 20120511213333.B7DF32004C@flycatcher.gentoo.org
1 fuzzyray 12/05/11 21:33:33
2
3 Added: 1.33-epm-310475.patch
4 Log:
5 Add patch from Alexander Miller to fix epm -qi output. Bug 310475
6 Fix implicit RDEPEND in stable epm-1.33 ebuild.
7 Remove unused epm-0.9.1 ebuild.
8
9 (Portage version: 2.1.10.58/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.1 app-portage/epm/files/1.33-epm-310475.patch
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/epm/files/1.33-epm-310475.patch?rev=1.1&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/epm/files/1.33-epm-310475.patch?rev=1.1&content-type=text/plain
16
17 Index: 1.33-epm-310475.patch
18 ===================================================================
19 Fix "Use of uninitialized value in printf" warning
20 http://bugs.gentoo.org/310475
21 Patch from Alexander Miller
22
23 --- epm
24 +++ epm
25 @@ -189,7 +189,7 @@
26 my ($p) = @_;
27 my ($group, $ename) = $p =~ /^(.+?)\/(.+)$/;
28 my ($key, $value);
29 - my %vals;
30 + my %vals = map {$_, '(n/a)'} qw/CATEGORY HOSTNAME DESCRIPTION URL LICENSE NAME RELEASE VERSION SLOT PACKAGER/;
31 my $ldbpath = "$dbpath/$p";
32 my $fmt = <<EOT;
33 Name : \%s
34 @@ -206,7 +206,7 @@
35 open(F, "bzcat $ldbpath/environment.bz2|")
36 or die "epm: Can't open $ldbpath/environment.bz2: $!\n";
37 while (<F>) {
38 - next unless (/^(CATEGORY|HOSTNAME|DESCRIPTION|HOMEPAGE|LICENSE|PN|PR|PV|SLOT)=(.*)/);
39 + next unless (/^(?:declare\s+(?:-[x-]\s+)*)?(CATEGORY|HOSTNAME|DESCRIPTION|HOMEPAGE|LICENSE|PN|PR|PV|SLOT)=(.*)/);
40 ($key, $value) = ($1, $2);
41 if ($key eq 'PN') {
42 $key = 'NAME';
43 @@ -221,6 +221,7 @@
44 }
45 # Clean up the double and single quotes
46 $value =~ s/^'(.*)'$/$1/o;
47 + $value =~ s/^"(.*)"$/$1/o;
48 $value =~ s/'\\''/'/go;
49 $value =~ s/\\"/"/go;