summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-05 10:06:48 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-05 10:06:48 +0000
commitb459ed95992b02311232bf4530903ac4aee073e0 (patch)
treed38735a281d2bbeaad0374987d35d32ee576c721 /t
parent01d868b8a066fa0f223b54257ba3bec6f779d215 (diff)
downloadurpmi-b459ed95992b02311232bf4530903ac4aee073e0.tar
urpmi-b459ed95992b02311232bf4530903ac4aee073e0.tar.gz
urpmi-b459ed95992b02311232bf4530903ac4aee073e0.tar.bz2
urpmi-b459ed95992b02311232bf4530903ac4aee073e0.tar.xz
urpmi-b459ed95992b02311232bf4530903ac4aee073e0.zip
- urpmi, urpme, urpmq, urpmf:
o fix --use-distrib (and add test to ensure it never breaks again)
Diffstat (limited to 't')
-rw-r--r--t/superuser--addmedia.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/superuser--addmedia.t b/t/superuser--addmedia.t
index 9e7ce17f..63b9fb34 100644
--- a/t/superuser--addmedia.t
+++ b/t/superuser--addmedia.t
@@ -63,6 +63,7 @@ try_distrib_removable({
with_synthesis3 => "../..//media/media_info/synthesis.hdlist_$name3.cz" },
'--probe-synthesis');
+try_use_distrib();
sub try_medium {
my ($want, $options, $o_options2) = @_;
@@ -119,6 +120,11 @@ sub try_distrib_ {
urpmi_removemedia('-a');
}
+sub try_use_distrib {
+ urpmi("--use-distrib $::pwd $name $name2");
+ check_installed_and_remove($name, $name2);
+}
+
sub try_distrib_removable_ {
my ($want, $want2, $want3, $options) = @_;