aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2008-01-29 21:38:33 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2008-01-29 21:38:33 +0000
commit72aa7dabb2407d8c76b6cdd590f5d42debed3b56 (patch)
tree46dac69cc9ae2ad1e3c32cc96416b9e35f8ad4e3
parent02e14506ac57f50b8fe77c79ae72be0403d52b2c (diff)
downloadspec-helper-72aa7dabb2407d8c76b6cdd590f5d42debed3b56.tar
spec-helper-72aa7dabb2407d8c76b6cdd590f5d42debed3b56.tar.gz
spec-helper-72aa7dabb2407d8c76b6cdd590f5d42debed3b56.tar.bz2
spec-helper-72aa7dabb2407d8c76b6cdd590f5d42debed3b56.tar.xz
spec-helper-72aa7dabb2407d8c76b6cdd590f5d42debed3b56.zip
fix warning
-rwxr-xr-xstrip_files5
1 files changed, 4 insertions, 1 deletions
diff --git a/strip_files b/strip_files
index 03bd460..d03de2b 100755
--- a/strip_files
+++ b/strip_files
@@ -18,7 +18,10 @@ use File::Find;
# for use by File::Find. It'll fill the following 3 arrays with anything
# it finds:
my (@shared_libs, @executables, @static_libs);
-my @exclude_files = (split(' ', $ENV{EXCLUDE_FROM_STRIP}), "/usr/lib/debug");
+my @exclude_files = (
+ $ENV{EXCLUDE_FROM_STRIP} ? split(' ', $ENV{EXCLUDE_FROM_STRIP}) : (),
+ "/usr/lib/debug"
+);
# TODO: we should write a binding for libfile...
sub expensive_test {