summaryrefslogtreecommitdiffstats
path: root/t/superuser--media_info_dir.t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-11-30 10:14:46 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-11-30 10:14:46 +0000
commit3ccf4fa6a9e2e17fe5bd8bf1b23500cae7379a1e (patch)
tree7db1a2601d861c339d3fdb65a16f7a92a355f7d8 /t/superuser--media_info_dir.t
parent9571638b8f4070a263159530c079e2818fd200ba (diff)
downloadurpmi-3ccf4fa6a9e2e17fe5bd8bf1b23500cae7379a1e.tar
urpmi-3ccf4fa6a9e2e17fe5bd8bf1b23500cae7379a1e.tar.gz
urpmi-3ccf4fa6a9e2e17fe5bd8bf1b23500cae7379a1e.tar.bz2
urpmi-3ccf4fa6a9e2e17fe5bd8bf1b23500cae7379a1e.tar.xz
urpmi-3ccf4fa6a9e2e17fe5bd8bf1b23500cae7379a1e.zip
- urpmi:
o fix regression introduced in 4.10.15: "urpmi --force valid invalid" should warn about "invalid" but still install "valid"
Diffstat (limited to 't/superuser--media_info_dir.t')
-rw-r--r--t/superuser--media_info_dir.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/superuser--media_info_dir.t b/t/superuser--media_info_dir.t
index 75bca982..b2d616f2 100644
--- a/t/superuser--media_info_dir.t
+++ b/t/superuser--media_info_dir.t
@@ -9,6 +9,7 @@ use Test::More 'no_plan';
need_root_and_prepare();
various();
urpmq_various();
+urpmi_force_skip_unknown();
rpm_v3();
sub various {
@@ -33,6 +34,21 @@ sub urpmq_various {
urpmi_removemedia('-a');
}
+sub urpmi_force_skip_unknown {
+ my $name = 'various';
+ urpmi_addmedia("$name $::pwd/media/$name");
+
+ urpmi($name);
+ check_installed_and_remove($name);
+
+ test_urpmi_fail("$name unknown-pkg");
+
+ urpmi("--force $name unknown-pkg");
+ check_installed_and_remove($name);
+
+ urpmi_removemedia($name);
+}
+
sub rpm_v3 {
my @names = qw(libtermcap nls p2c);