diff options
author | Guillaume Rousse <guillomovitch@mandriva.org> | 2009-09-25 20:57:20 +0000 |
---|---|---|
committer | Guillaume Rousse <guillomovitch@mandriva.org> | 2009-09-25 20:57:20 +0000 |
commit | 5525505600906cb23a650af11bd952e6c42e154b (patch) | |
tree | 8b3b8dce061b27243f964953be8512ad51b7e685 | |
parent | cfc21abcdc1d6f36d3efa898304f1227c9e85ccb (diff) | |
download | spec-helper-5525505600906cb23a650af11bd952e6c42e154b.tar spec-helper-5525505600906cb23a650af11bd952e6c42e154b.tar.gz spec-helper-5525505600906cb23a650af11bd952e6c42e154b.tar.bz2 spec-helper-5525505600906cb23a650af11bd952e6c42e154b.tar.xz spec-helper-5525505600906cb23a650af11bd952e6c42e154b.zip |
use standard library instead of unreadable code
-rwxr-xr-x | strip_and_check_elf_files | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/strip_and_check_elf_files b/strip_and_check_elf_files index 4cebbe9..88d25b6 100755 --- a/strip_and_check_elf_files +++ b/strip_and_check_elf_files @@ -5,6 +5,7 @@ use strict; use warnings; use File::Find; +use File::Basename; my $buildroot = $ENV{RPM_BUILD_ROOT}; die "No build root defined" unless $buildroot; @@ -98,9 +99,3 @@ sub keep_wanted() { return; } } - -sub basename { - local $_ = shift; - s|/*\s*$||; s|.*/||; - $_ -} |