From d507758cd11e7e1bad5b5ebfd13319157f44e275 Mon Sep 17 00:00:00 2001 From: Mandrake Date: Thu, 26 Oct 2006 11:21:58 +0000 Subject: rename the rpm to remove the prefix --- lib/Youri/Submit/Action/Install.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/Youri/Submit/Action') diff --git a/lib/Youri/Submit/Action/Install.pm b/lib/Youri/Submit/Action/Install.pm index e665476..906e421 100644 --- a/lib/Youri/Submit/Action/Install.pm +++ b/lib/Youri/Submit/Action/Install.pm @@ -39,7 +39,7 @@ sub run { # 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\n" if $self->{_verbose}; + print "installing file $file to $dest/$rpm\n" if $self->{_verbose}; unless ($self->{_test}) { # create destination dir if needed @@ -47,7 +47,9 @@ sub run { unless -d $dest; # install file to new location - system("install -m $self->{_perms} $file $dest"); + system("install -m $self->{_perms} $file $dest/$rpm"); + my $arch = $package->get_arch(); + $repository->set_arch_changed($target, $arch); } $package->{_file} = "$dest/$rpm"; print "deleting file $file\n" if $self->{_verbose}; -- cgit v1.2.1