diff options
author | Florent Villard <warly@mandriva.com> | 2006-10-16 12:57:42 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2006-10-16 12:57:42 +0000 |
commit | a06cd2f6bca0fd4bd35bf2f8cfbb0fa0109f515c (patch) | |
tree | d49b290c5a5729024f7789c03fbe881bfe263e4e /lib/Youri/Submit/Action/Install.pm | |
parent | 0faf3c79256ed17b70f23474db9f3fc3156aaade (diff) | |
download | mga-youri-submit-a06cd2f6bca0fd4bd35bf2f8cfbb0fa0109f515c.tar mga-youri-submit-a06cd2f6bca0fd4bd35bf2f8cfbb0fa0109f515c.tar.gz mga-youri-submit-a06cd2f6bca0fd4bd35bf2f8cfbb0fa0109f515c.tar.bz2 mga-youri-submit-a06cd2f6bca0fd4bd35bf2f8cfbb0fa0109f515c.tar.xz mga-youri-submit-a06cd2f6bca0fd4bd35bf2f8cfbb0fa0109f515c.zip |
merging dev with upstream
Diffstat (limited to 'lib/Youri/Submit/Action/Install.pm')
-rw-r--r-- | lib/Youri/Submit/Action/Install.pm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Youri/Submit/Action/Install.pm b/lib/Youri/Submit/Action/Install.pm index df65991..e665476 100644 --- a/lib/Youri/Submit/Action/Install.pm +++ b/lib/Youri/Submit/Action/Install.pm @@ -1,9 +1,9 @@ # $Id$ -package Youri::Upload::Action::Install; +package Youri::Submit::Action::Install; =head1 NAME -Youri::Upload::Action::Install - Package installation +Youri::Submit::Action::Install - Package installation =head1 DESCRIPTION @@ -14,7 +14,7 @@ This action plugin ensures installation of new package revisions. use warnings; use strict; use Carp; -use base qw/Youri::Upload::Action/; +use base qw/Youri::Submit::Action/; sub _init { my $self = shift; @@ -32,22 +32,22 @@ sub run { my ($self, $package, $repository, $target, $define) = @_; croak "Not a class method" unless ref $self; - my $file = $package->get_file(); + my $file = $package->as_file(); my $rpm = $package->get_file_name(); my $dest = $repository->get_install_dir($package, $target, $define); # FIXME remove prefix this should be done by a function $rpm =~ s/^\d{14}\.\w*\.\w+\.\d+_//; $rpm =~ s/^\@\d+://; - print "installing file $file to $dest/$rpm\n" if $self->{_verbose}; + print "installing file $file to $dest\n" if $self->{_verbose}; unless ($self->{_test}) { # create destination dir if needed - system("install -d -m " . ($self->{_perms} + 111) . " $dest/") + system("install -d -m " . ($self->{_perms} + 111) . " $dest") unless -d $dest; # install file to new location - system("install -m $self->{_perms} $file $dest/$rpm"); + system("install -m $self->{_perms} $file $dest"); } $package->{_file} = "$dest/$rpm"; print "deleting file $file\n" if $self->{_verbose}; |