From 5525505600906cb23a650af11bd952e6c42e154b Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Fri, 25 Sep 2009 20:57:20 +0000 Subject: use standard library instead of unreadable code --- strip_and_check_elf_files | 7 +------ 1 file changed, 1 insertion(+), 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|.*/||; - $_ -} -- cgit v1.2.1