aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2009-09-25 20:57:20 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2009-09-25 20:57:20 +0000
commit5525505600906cb23a650af11bd952e6c42e154b (patch)
tree8b3b8dce061b27243f964953be8512ad51b7e685
parentcfc21abcdc1d6f36d3efa898304f1227c9e85ccb (diff)
downloadspec-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-xstrip_and_check_elf_files7
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|.*/||;
- $_
-}