summaryrefslogtreecommitdiffstats
path: root/t/superuser--epochless-conflict-with-promotion.t
diff options
context:
space:
mode:
Diffstat (limited to 't/superuser--epochless-conflict-with-promotion.t')
-rw-r--r--t/superuser--epochless-conflict-with-promotion.t26
1 files changed, 26 insertions, 0 deletions
diff --git a/t/superuser--epochless-conflict-with-promotion.t b/t/superuser--epochless-conflict-with-promotion.t
new file mode 100644
index 00000000..17f6b720
--- /dev/null
+++ b/t/superuser--epochless-conflict-with-promotion.t
@@ -0,0 +1,26 @@
+#!/usr/bin/perl
+
+# a-1 does not have epoch
+# a-2 has epoch 1
+#
+# b conflicts with a <= 2
+#
+# RPM does not consider this a conflict with a-2, so urpmi should promote it.
+#
+use strict;
+use lib '.', 't';
+use helper;
+use urpm::util;
+use Test::More 'no_plan';
+
+need_root_and_prepare();
+
+my $name = 'epochless-conflict-with-promotion';
+urpmi_addmedia("$name $::pwd/media/$name");
+
+urpmi('a-1');
+check_installed_fullnames('a-1-1');
+
+# urpmi('--auto b');
+# check_installed_and_remove('a', 'b');
+# ERROR: urpmi considers the conflict to match a-2 as well and just removes a