Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 163003 Details for
Bug 172496
add ECOMPRESS_MASK support to ecompressdir
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add new PORTAGE_COMPRESS_EXCLUDE_SUFFIXES variable.
exclude_suffixes.patch (text/plain), 1.92 KB, created by
Zac Medico
on 2008-08-15 22:08:53 UTC
(
hide
)
Description:
Add new PORTAGE_COMPRESS_EXCLUDE_SUFFIXES variable.
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2008-08-15 22:08:53 UTC
Size:
1.92 KB
patch
obsolete
>Index: cnf/make.globals >=================================================================== >--- cnf/make.globals (revision 11418) >+++ cnf/make.globals (revision 11419) >@@ -56,6 +56,9 @@ > # This option will be removed and forced to yes. > AUTOCLEAN="yes" > >+# Don't compress files with these suffixes. >+PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png" >+ > # Number of mirrors to try when a downloaded file has an incorrect checksum. > PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5" > >Index: bin/ecompress >=================================================================== >--- bin/ecompress (revision 11418) >+++ bin/ecompress (revision 11419) >@@ -63,6 +63,22 @@ > exit 1 > ;; > *) >+ mask_ext_re="" >+ set -f >+ for x in $PORTAGE_COMPRESS_EXCLUDE_SUFFIXES ; do >+ mask_ext_re+="|$x" >+ done >+ set +f >+ mask_ext_re="^(${mask_ext_re:1})\$" >+ declare -a filtered_args=() >+ i=0 >+ for x in "$@" ; do >+ [[ ${x##*.} =~ $mask_ext_re ]] && continue >+ filtered_args[$i]=$x >+ (( i++ )) >+ done >+ set "${filtered_args[@]}" >+ > # If a compressed version of the file already exists, simply > # delete it so that the compressor doesn't whine (bzip2 will > # complain and skip, gzip will prompt for input) >Index: man/make.conf.5 >=================================================================== >--- man/make.conf.5 (revision 11418) >+++ man/make.conf.5 (revision 11419) >@@ -430,6 +430,13 @@ > \fBPORTAGE_COMPRESS_FLAGS\fR = \fI"\-9"\fR > This variable contains flags for the \fBPORTAGE_COMPRESS\fR command. > .TP >+.TP >+\fBPORTAGE_COMPRESS_EXCLUDE_SUFFIXES\fR = \fI"gif htm[l]? jp[e]?g pdf png"\fR >+This variable contains a space delimited list of file suffixes for which >+matching files are excluded when the \fBPORTAGE_COMPRESS\fR command is >+called. Regular expressions are supported and the match is performed only >+against the portion of the file name which follows the last period character. >+.TP > .B PORTAGE_ELOG_CLASSES > .TP > .B PORTAGE_ELOG_SYSTEM
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 172496
: 163003