summaryrefslogtreecommitdiffstats
path: root/t/superuser--dropped-provides.t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-05-19 15:16:41 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-05-19 15:16:41 +0000
commitf47429b37e85c5832cefae5661d3bdc3b0f384f1 (patch)
treecd7d8b2e4e824dd39bd5f2e3fda30e4e66c1284a /t/superuser--dropped-provides.t
parent94c30b32db811cac8d564a19175a3f19455b60f1 (diff)
downloadurpmi-f47429b37e85c5832cefae5661d3bdc3b0f384f1.tar
urpmi-f47429b37e85c5832cefae5661d3bdc3b0f384f1.tar.gz
urpmi-f47429b37e85c5832cefae5661d3bdc3b0f384f1.tar.bz2
urpmi-f47429b37e85c5832cefae5661d3bdc3b0f384f1.tar.xz
urpmi-f47429b37e85c5832cefae5661d3bdc3b0f384f1.zip
add a test case for mdvbz#40842
Diffstat (limited to 't/superuser--dropped-provides.t')
-rw-r--r--t/superuser--dropped-provides.t26
1 files changed, 26 insertions, 0 deletions
diff --git a/t/superuser--dropped-provides.t b/t/superuser--dropped-provides.t
new file mode 100644
index 00000000..e174cea7
--- /dev/null
+++ b/t/superuser--dropped-provides.t
@@ -0,0 +1,26 @@
+#!/usr/bin/perl
+
+# (mdvbz#40842)
+#
+# a-1 provides aa
+# a-2 does not provide aa anymore
+#
+# b conflicts with a < 2
+# b requires aa
+#
+use strict;
+use lib '.', 't';
+use helper;
+use urpm::util;
+use Test::More 'no_plan';
+
+need_root_and_prepare();
+
+my $name = 'dropped-provides';
+urpmi_addmedia("$name $::pwd/media/$name");
+
+urpmi('a-1');
+check_installed_fullnames('a-1-1');
+
+urpmi('--auto b');
+check_installed_and_remove('b', 'a', 'aa');