diff options
Diffstat (limited to 'lib/Youri/Submit/Action/Install.pm')
-rw-r--r-- | lib/Youri/Submit/Action/Install.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Youri/Submit/Action/Install.pm b/lib/Youri/Submit/Action/Install.pm index 83d0149..80e8de2 100644 --- a/lib/Youri/Submit/Action/Install.pm +++ b/lib/Youri/Submit/Action/Install.pm @@ -14,6 +14,7 @@ This action plugin ensures installation of new package revisions. use warnings; use strict; use Carp; +use File::Basename; use base qw/Youri::Submit::Action/; sub _init { @@ -33,7 +34,7 @@ sub run { croak "Not a class method" unless ref $self; my $file = $package->as_file(); - my $rpm = $package->get_file_name(); + my $rpm = basename($package->get_file_name()); my $dest = $repository->get_install_dir($package, $target, $define); # FIXME remove prefix this should be done by a function |