aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Youri/Submit/Action
diff options
context:
space:
mode:
authorMandrake <mandrake@mandriva.com>2006-10-26 11:21:58 +0000
committerMandrake <mandrake@mandriva.com>2006-10-26 11:21:58 +0000
commitd507758cd11e7e1bad5b5ebfd13319157f44e275 (patch)
tree6dfaf24d1ceb738d4f5ea844cdc0defe1b955533 /lib/Youri/Submit/Action
parentce12f8dc142e491c1c2518af20db547b15cf54a0 (diff)
downloadmga-youri-submit-d507758cd11e7e1bad5b5ebfd13319157f44e275.tar
mga-youri-submit-d507758cd11e7e1bad5b5ebfd13319157f44e275.tar.gz
mga-youri-submit-d507758cd11e7e1bad5b5ebfd13319157f44e275.tar.bz2
mga-youri-submit-d507758cd11e7e1bad5b5ebfd13319157f44e275.tar.xz
mga-youri-submit-d507758cd11e7e1bad5b5ebfd13319157f44e275.zip
rename the rpm to remove the prefix
Diffstat (limited to 'lib/Youri/Submit/Action')
-rw-r--r--lib/Youri/Submit/Action/Install.pm6
1 files changed, 4 insertions, 2 deletions
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};