diff options
author | Guillaume Rousse <guillomovitch@mandriva.org> | 2009-05-08 16:36:18 +0000 |
---|---|---|
committer | Guillaume Rousse <guillomovitch@mandriva.org> | 2009-05-08 16:36:18 +0000 |
commit | 1b6b1bb07276cb4247e459a1472a5df55b5d6eb2 (patch) | |
tree | 3736843eb2b3d0ae6464463eae77da7b994cca31 /strip_and_check_elf_files | |
parent | abf560c2b420583cef3b305037aad1a0614aa76e (diff) | |
download | spec-helper-1b6b1bb07276cb4247e459a1472a5df55b5d6eb2.tar spec-helper-1b6b1bb07276cb4247e459a1472a5df55b5d6eb2.tar.gz spec-helper-1b6b1bb07276cb4247e459a1472a5df55b5d6eb2.tar.bz2 spec-helper-1b6b1bb07276cb4247e459a1472a5df55b5d6eb2.tar.xz spec-helper-1b6b1bb07276cb4247e459a1472a5df55b5d6eb2.zip |
fix exception handling:
- exported string is now a single regexp, as automatic dependencies exceptions
- don't change directory in compress_file, so as to match absolute path easily,
as $File::Find::name will always be relative to $buildroot
Diffstat (limited to 'strip_and_check_elf_files')
-rwxr-xr-x | strip_and_check_elf_files | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/strip_and_check_elf_files b/strip_and_check_elf_files index 0870e99..b11e099 100755 --- a/strip_and_check_elf_files +++ b/strip_and_check_elf_files @@ -22,9 +22,8 @@ sub strip_files { my @to_strip = (@shared_libs, @executables); if ($ENV{EXCLUDE_FROM_STRIP}) { - my $exclude_pattern = join('|', - map { '(:?' . quotemeta($_) . ')' } split(' ', $ENV{EXCLUDE_FROM_STRIP})); - @to_strip = grep { !/$exclude_pattern/ } @to_strip; + my $exclude_pattern = qr/$ENV{EXCLUDE_FROM_STRIP}/; + @to_strip = grep { !/$exclude_pattern/ } @to_strip; } system( |