[Mageia-sysadm] [247] get_file_name returns a full path, which Install does not like
root at mageia.org
root at mageia.org
Fri Jan 7 09:07:11 CET 2011
Revision: 247
Author: pterjan
Date: 2011-01-07 09:07:11 +0100 (Fri, 07 Jan 2011)
Log Message:
-----------
get_file_name returns a full path, which Install does not like
Modified Paths:
--------------
build_system/mdv-youri-submit/trunk/lib/Youri/Submit/Action/Install.pm
Modified: build_system/mdv-youri-submit/trunk/lib/Youri/Submit/Action/Install.pm
===================================================================
--- build_system/mdv-youri-submit/trunk/lib/Youri/Submit/Action/Install.pm 2011-01-07 01:42:11 UTC (rev 246)
+++ build_system/mdv-youri-submit/trunk/lib/Youri/Submit/Action/Install.pm 2011-01-07 08:07:11 UTC (rev 247)
@@ -14,6 +14,7 @@
use warnings;
use strict;
use Carp;
+use File::Basename;
use base qw/Youri::Submit::Action/;
sub _init {
@@ -33,7 +34,7 @@
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110107/4c85caa0/attachment.html>
More information about the Mageia-sysadm
mailing list