summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-07-28 12:03:36 +0000
committerFrancois Pons <fpons@mandriva.com>2003-07-28 12:03:36 +0000
commitf81cc24952a85c65727daf43b476cddd2d379aee (patch)
tree8a38253fadcb1156d16117e9d227bba398bde4ae
parentc6dd215b2f162f433b9331fa207e84194bdfa910 (diff)
downloadurpmi-f81cc24952a85c65727daf43b476cddd2d379aee.tar
urpmi-f81cc24952a85c65727daf43b476cddd2d379aee.tar.gz
urpmi-f81cc24952a85c65727daf43b476cddd2d379aee.tar.bz2
urpmi-f81cc24952a85c65727daf43b476cddd2d379aee.tar.xz
urpmi-f81cc24952a85c65727daf43b476cddd2d379aee.zip
split of transaction is disabled if --test is used, else the test will problably
fails.
-rwxr-xr-xurpmi3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpmi b/urpmi
index bcc80fa3..033b908d 100755
--- a/urpmi
+++ b/urpmi
@@ -520,10 +520,11 @@ $urpm->copy_packages_of_removable_media($list, \%sources,
});
#- now create transaction just before installation, this will save user impression of slowness.
+#- split of transaction should be disabled if --test is used.
$urpm->create_transaction($state,
nodeps => $urpm->{options}{'allow-nodeps'} || $urpm->{options}{'allow-force'},
split_level => $urpm->{options}{'split-level'},
- split_length => $urpm->{options}{'split-length'});
+ split_length => !$test && $urpm->{options}{'split-length'});
my ($ok, $nok) = (0, 0);
my @errors;