summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-08-22 15:13:00 +0000
committerFrancois Pons <fpons@mandriva.com>2003-08-22 15:13:00 +0000
commitb7c0cd335ae09e787a9230cfdbae4d9f9d9e3f00 (patch)
treed4efd5400dcc96bf3f0ab7c65a40e6577a8ccd86
parent2f64a1cc02bf1f6934747d973a11a7a2f7b57208 (diff)
downloadurpmi-b7c0cd335ae09e787a9230cfdbae4d9f9d9e3f00.tar
urpmi-b7c0cd335ae09e787a9230cfdbae4d9f9d9e3f00.tar.gz
urpmi-b7c0cd335ae09e787a9230cfdbae4d9f9d9e3f00.tar.bz2
urpmi-b7c0cd335ae09e787a9230cfdbae4d9f9d9e3f00.tar.xz
urpmi-b7c0cd335ae09e787a9230cfdbae4d9f9d9e3f00.zip
implemented forked transaction when more than one transaction are used.
-rwxr-xr-xurpmi3
1 files changed, 3 insertions, 0 deletions
diff --git a/urpmi b/urpmi
index 5b4cf20f..ecb55ad9 100755
--- a/urpmi
+++ b/urpmi
@@ -698,6 +698,7 @@ foreach my $set (@{$state->{transaction} || []}) {
};
my @l = $urpm->install(!$urpm->{options}{'allow-force'} && $set->{remove} || [],
\%transaction_sources_install, \%transaction_sources,
+ fork => @{$state->{transaction} || []} > 1, #- fork if multiple transaction
translate_message => 1,
oldpackage => $state->{oldpackage}, post_clean_cache => $urpm->{options}{'post-clean'},
test => $test,
@@ -716,6 +717,7 @@ foreach my $set (@{$state->{transaction} || []}) {
$urpm->{log}("starting installing packages without deps");
@l = $urpm->install(!$urpm->{options}{'allow-force'} && $set->{remove} || [],
\%transaction_sources_install, \%transaction_sources,
+ fork => @{$state->{transaction} || []} > 1, #- fork if multiple transaction
translate_message => 1, nodeps => 1,
oldpackage => $state->{oldpackage}, post_clean_cache => $urpm->{options}{'post-clean'},
test => $test,
@@ -732,6 +734,7 @@ foreach my $set (@{$state->{transaction} || []}) {
$urpm->{log}("starting force installing packages without deps");
@l = $urpm->install(!$urpm->{options}{'allow-force'} && $set->{remove} || [],
\%transaction_sources_install, \%transaction_sources,
+ fork => @{$state->{transaction} || []} > 1, #- fork if multiple transaction
translate_message => 1, nodeps => 1, force => 1,
oldpackage => $state->{oldpackage},
post_clean_cache => $urpm->{options}{'post-clean'},