Lines 63-68
Link Here
|
63 |
exit 1 |
63 |
exit 1 |
64 |
;; |
64 |
;; |
65 |
*) |
65 |
*) |
|
|
66 |
mask_ext_re="" |
67 |
set -f |
68 |
for x in $PORTAGE_COMPRESS_EXCLUDE_SUFFIXES ; do |
69 |
mask_ext_re+="|$x" |
70 |
done |
71 |
set +f |
72 |
mask_ext_re="^(${mask_ext_re:1})\$" |
73 |
declare -a filtered_args=() |
74 |
i=0 |
75 |
for x in "$@" ; do |
76 |
[[ ${x##*.} =~ $mask_ext_re ]] && continue |
77 |
filtered_args[$i]=$x |
78 |
(( i++ )) |
79 |
done |
80 |
set "${filtered_args[@]}" |
81 |
|
66 |
# If a compressed version of the file already exists, simply |
82 |
# If a compressed version of the file already exists, simply |
67 |
# delete it so that the compressor doesn't whine (bzip2 will |
83 |
# delete it so that the compressor doesn't whine (bzip2 will |
68 |
# complain and skip, gzip will prompt for input) |
84 |
# complain and skip, gzip will prompt for input) |