Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r11539 - main/trunk/bin
Date: Thu, 25 Sep 2008 13:30:38
Message-Id: E1KiqvT-0005rV-2C@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-09-25 13:30:33 +0000 (Thu, 25 Sep 2008)
3 New Revision: 11539
4
5 Modified:
6 main/trunk/bin/ecompress
7 Log:
8 Fix the case where all arguments are filtered out by
9 PORTAGE_COMPRESS_EXCLUDE_SUFFIXES, since otherwise 'set' was
10 called with no arguments which caused the environment to be
11 displayed on stdout.
12
13
14 Modified: main/trunk/bin/ecompress
15 ===================================================================
16 --- main/trunk/bin/ecompress 2008-09-25 01:24:00 UTC (rev 11538)
17 +++ main/trunk/bin/ecompress 2008-09-25 13:30:33 UTC (rev 11539)
18 @@ -77,7 +77,8 @@
19 filtered_args[$i]=$x
20 (( i++ ))
21 done
22 - set "${filtered_args[@]}"
23 + [ $i -eq 0 ] && exit 0
24 + set -- "${filtered_args[@]}"
25
26 # If a compressed version of the file already exists, simply
27 # delete it so that the compressor doesn't whine (bzip2 will