Gentoo Archives: gentoo-commits

From: Sven Eden <sven.eden@×××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/ufed:master commit in: /
Date: Mon, 25 Nov 2013 21:43:30
Message-Id: 1385366902.583d6c70e4e06a60445a0f9e744914c96f14c79a.yamakuzure@gentoo
1 commit: 583d6c70e4e06a60445a0f9e744914c96f14c79a
2 Author: Sven Eden <yamakuzure <AT> gmx <DOT> net>
3 AuthorDate: Mon Nov 25 08:08:22 2013 +0000
4 Commit: Sven Eden <sven.eden <AT> gmx <DOT> de>
5 CommitDate: Mon Nov 25 08:08:22 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/ufed.git;a=commit;h=583d6c70
7
8 ufed.pl/Portage.pm: Parsing error messages from eval are now chomp'ed
9
10 ---
11 Portage.pm | 4 ++--
12 ufed.pl.in | 3 ++-
13 2 files changed, 4 insertions(+), 3 deletions(-)
14
15 diff --git a/Portage.pm b/Portage.pm
16 index e9edaab..d3bed35 100644
17 --- a/Portage.pm
18 +++ b/Portage.pm
19 @@ -999,8 +999,8 @@ sub _read_sh {
20 }
21 }
22 };
23 - defined($@) and length($@) and
24 - die "Parse error in $fname\n - Error: \"$@\"\n";
25 + defined($@) and length($@) and chomp $@
26 + and die "Parse error in $fname\n - Error: \"$@\"\n";
27 }
28 _merge_env(\%env);
29 return %env if wantarray;
30
31 diff --git a/ufed.pl.in b/ufed.pl.in
32 index 37f7957..3d1e354 100644
33 --- a/ufed.pl.in
34 +++ b/ufed.pl.in
35 @@ -335,7 +335,8 @@ sub save_flags {
36 }
37 }
38 };
39 - defined($@) and length($@) and die "\nParse error when writing make.conf"
40 + defined($@) and length($@) and chomp $@
41 + and die "\nParse error when writing make.conf"
42 . " - did you modify it while ufed was running?\n"
43 . " - Error: \"$@\"\n";