diff options
-rw-r--r-- | t/data/SPECS/dropped-provides/a1.spec | 14 | ||||
-rw-r--r-- | t/data/SPECS/dropped-provides/a2.spec | 13 | ||||
-rw-r--r-- | t/data/SPECS/dropped-provides/aa.spec | 13 | ||||
-rw-r--r-- | t/data/SPECS/dropped-provides/b.spec | 15 | ||||
-rw-r--r-- | t/superuser--dropped-provides.t | 26 |
5 files changed, 81 insertions, 0 deletions
diff --git a/t/data/SPECS/dropped-provides/a1.spec b/t/data/SPECS/dropped-provides/a1.spec new file mode 100644 index 00000000..f5d9d728 --- /dev/null +++ b/t/data/SPECS/dropped-provides/a1.spec @@ -0,0 +1,14 @@ +Summary: x +Name: a +Version: 1 +Release: 1 +License: x +Group: x +Url: x +Provides: aa +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/data/SPECS/dropped-provides/a2.spec b/t/data/SPECS/dropped-provides/a2.spec new file mode 100644 index 00000000..0cd2afc8 --- /dev/null +++ b/t/data/SPECS/dropped-provides/a2.spec @@ -0,0 +1,13 @@ +Summary: x +Name: a +Version: 2 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/data/SPECS/dropped-provides/aa.spec b/t/data/SPECS/dropped-provides/aa.spec new file mode 100644 index 00000000..19313fac --- /dev/null +++ b/t/data/SPECS/dropped-provides/aa.spec @@ -0,0 +1,13 @@ +Summary: x +Name: aa +Version: 2 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/data/SPECS/dropped-provides/b.spec b/t/data/SPECS/dropped-provides/b.spec new file mode 100644 index 00000000..6bfb87ce --- /dev/null +++ b/t/data/SPECS/dropped-provides/b.spec @@ -0,0 +1,15 @@ +Summary: x +Name: b +Version: 2 +Release: 1 +License: x +Group: x +Url: x +Conflicts: a < 2 +Requires: aa +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files 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'); |