summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-08-30 16:32:30 +0000
committerFrancois Pons <fpons@mandriva.com>2002-08-30 16:32:30 +0000
commit26f7d6351df7887cf523ea3496157a53359d0909 (patch)
tree025dc691a3013e390eab936e71dcd324158e8564 /urpm.pm
parent2f2754ca179a92c426803ae0ea443b3f7825090a (diff)
downloadurpmi-26f7d6351df7887cf523ea3496157a53359d0909.tar
urpmi-26f7d6351df7887cf523ea3496157a53359d0909.tar.gz
urpmi-26f7d6351df7887cf523ea3496157a53359d0909.tar.bz2
urpmi-26f7d6351df7887cf523ea3496157a53359d0909.tar.xz
urpmi-26f7d6351df7887cf523ea3496157a53359d0909.zip
4.0-11mdk
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index bfa3ea31..57483054 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2042,6 +2042,10 @@ sub install {
}
@l = $trans->run($urpm, %options);
+ #- in case of error or testing, do not try to check rpmdb
+ #- for packages being upgraded or not.
+ @l || $options{test} and return @l;
+
#- examine the local repository to delete package which have been installed.
if ($options{post_clean_cache}) {
foreach (keys %$install, keys %$upgrade) {
@@ -2054,7 +2058,7 @@ sub install {
}
}
- @l;
+ return @l;
}
#- install all files to node as remembered according to resolving done.