diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | NEWS | 5 | ||||
-rwxr-xr-x | strip_and_check_elf_files | 5 |
3 files changed, 9 insertions, 3 deletions
@@ -1,5 +1,5 @@ PACKAGE = spec-helper -VERSION = 0.30.4 +VERSION = 0.30.5 SVNPATH = svn+ssh://svn.mandriva.com/svn/soft/rpm/$(PACKAGE) SCRIPT_FILES = clean_files clean_perl compress_files strip_and_check_elf_files \ @@ -1,3 +1,8 @@ +2009-06-25 Per Øyvind Karlsen <peroyvind@mandriva.org> 0.30.5 + * fix EXCLUDE_FROM_STRIP issue dealing with more than just one pattern, + which would result in files being stripped even when they should've been + excluded (cause of mdv bug #51374) + 2009-05-14 Guillaume Rousse <guillomovitch@mandriva.org> 0.30.4 * skip PDF files when fixing end of lines (mdv bug #51128) * initial test suite diff --git a/strip_and_check_elf_files b/strip_and_check_elf_files index b11e099..c3c5301 100755 --- a/strip_and_check_elf_files +++ b/strip_and_check_elf_files @@ -22,8 +22,9 @@ sub strip_files { my @to_strip = (@shared_libs, @executables); if ($ENV{EXCLUDE_FROM_STRIP}) { - my $exclude_pattern = qr/$ENV{EXCLUDE_FROM_STRIP}/; - @to_strip = grep { !/$exclude_pattern/ } @to_strip; + my $exclude_pattern = join('|', split(/\s+/, $ENV{EXCLUDE_FROM_STRIP})); + my $compiled_pattern = qr/($exclude_pattern)/; + @to_strip = grep { !/$compiled_pattern/ } @to_strip; } system( |