1 |
Author: zmedico |
2 |
Date: 2009-03-25 00:34:18 +0000 (Wed, 25 Mar 2009) |
3 |
New Revision: 13181 |
4 |
|
5 |
Modified: |
6 |
main/trunk/bin/ebuild.sh |
7 |
Log: |
8 |
Remove unused tar_opts variable inside unpack(). Thanks to zong_sharo for |
9 |
reporting. |
10 |
|
11 |
|
12 |
Modified: main/trunk/bin/ebuild.sh |
13 |
=================================================================== |
14 |
--- main/trunk/bin/ebuild.sh 2009-03-24 18:15:41 UTC (rev 13180) |
15 |
+++ main/trunk/bin/ebuild.sh 2009-03-25 00:34:18 UTC (rev 13181) |
16 |
@@ -327,7 +327,6 @@ |
17 |
local x |
18 |
local y |
19 |
local myfail |
20 |
- local tar_opts="" |
21 |
local eapi=${EAPI:-0} |
22 |
[ -z "$*" ] && die "Nothing passed to the 'unpack' command" |
23 |
|
24 |
@@ -349,7 +348,7 @@ |
25 |
|
26 |
_unpack_tar() { |
27 |
if [ "${y}" == "tar" ]; then |
28 |
- $1 -dc "${srcdir}${x}" | tar xof - ${tar_opts} |
29 |
+ $1 -dc "$srcdir$x" | tar xof - |
30 |
assert "$myfail" |
31 |
else |
32 |
$1 -dc "${srcdir}${x}" > ${x%.*} || die "$myfail" |
33 |
@@ -359,13 +358,13 @@ |
34 |
myfail="failure unpacking ${x}" |
35 |
case "${x##*.}" in |
36 |
tar) |
37 |
- tar xof "${srcdir}${x}" ${tar_opts} || die "$myfail" |
38 |
+ tar xof "$srcdir$x" || die "$myfail" |
39 |
;; |
40 |
tgz) |
41 |
- tar xozf "${srcdir}${x}" ${tar_opts} || die "$myfail" |
42 |
+ tar xozf "$srcdir$x" || die "$myfail" |
43 |
;; |
44 |
tbz|tbz2) |
45 |
- bzip2 -dc "${srcdir}${x}" | tar xof - ${tar_opts} |
46 |
+ bzip2 -dc "$srcdir$x" | tar xof - |
47 |
assert "$myfail" |
48 |
;; |
49 |
ZIP|zip|jar) |