aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-07 12:50:32 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-07 12:50:32 +0000
commita27f1d8f344147218dd44f2c59d365d5a22f10c5 (patch)
tree8568bafa05b27277d31ea784ceb4adfba3faf0bd
parent825807cd449f7fd474e33e2fee009b384292daa6 (diff)
downloadmga-youri-submit-a27f1d8f344147218dd44f2c59d365d5a22f10c5.tar
mga-youri-submit-a27f1d8f344147218dd44f2c59d365d5a22f10c5.tar.gz
mga-youri-submit-a27f1d8f344147218dd44f2c59d365d5a22f10c5.tar.bz2
mga-youri-submit-a27f1d8f344147218dd44f2c59d365d5a22f10c5.tar.xz
mga-youri-submit-a27f1d8f344147218dd44f2c59d365d5a22f10c5.zip
we need the same workaround as done in Action::Install
-rw-r--r--lib/Youri/Submit/Action/Link.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Youri/Submit/Action/Link.pm b/lib/Youri/Submit/Action/Link.pm
index db4e6c6..845491b 100644
--- a/lib/Youri/Submit/Action/Link.pm
+++ b/lib/Youri/Submit/Action/Link.pm
@@ -39,6 +39,10 @@ sub run {
my $default_dir = $repository->get_install_dir($package, $target, $define);
my $file = $package->get_file_name();
+ # FIXME remove prefix this should be done by a function
+ $file =~ s/^\d{14}\.\w*\.\w+\.\d+_//;
+ $file =~ s/^\@\d+://;
+
foreach my $arch ($repository->get_extra_arches()) {
# compute installation target, forcing arch
my $other_dir = $repository->get_install_dir(
@@ -58,6 +62,7 @@ sub run {
link $default_file, $file;
}
chdir $current_dir;
+ print "set_install_dir_changed($other_dir) for updated $file\n";
$repository->set_install_dir_changed($other_dir);
}
}