From: | "Maxim Koltsov (maksbotan)" <maksbotan@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-admin/stow/files: stow-2.2.0-avoid-precedence-warning.patch |
Date: | Fri, 06 Mar 2015 12:29:02 |
Message-Id: | 20150306122858.9ED6F1329C@oystercatcher.gentoo.org |
1 | maksbotan 15/03/06 12:28:58 |
2 | |
3 | Added: stow-2.2.0-avoid-precedence-warning.patch |
4 | Log: |
5 | Add upstream patch to fix bug #539702. Thanks to Erik Falor. |
6 | |
7 | (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key F8DBDADE) |
8 | |
9 | Revision Changes Path |
10 | 1.1 app-admin/stow/files/stow-2.2.0-avoid-precedence-warning.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/stow/files/stow-2.2.0-avoid-precedence-warning.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/stow/files/stow-2.2.0-avoid-precedence-warning.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: stow-2.2.0-avoid-precedence-warning.patch |
16 | =================================================================== |
17 | --- lib/Stow.pm.in |
18 | +++ lib/Stow.pm.in |
19 | @@ -1734,8 +1734,8 @@ sub read_a_link { |
20 | } |
21 | elsif (-l $path) { |
22 | debug(4, " read_a_link($path): real link"); |
23 | - return readlink $path |
24 | - or error("Could not read link: $path"); |
25 | + my $target = readlink $path or error("Could not read link: $path ($!)"); |
26 | + return $target; |
27 | } |
28 | internal_error("read_a_link() passed a non link path: $path\n"); |
29 | } |