]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Add a testcase for orphaned package handling in choice rules
authorMichael Schroeder <mls@suse.de>
Fri, 11 Nov 2022 12:22:31 +0000 (13:22 +0100)
committerMichael Schroeder <mls@suse.de>
Fri, 11 Nov 2022 13:12:47 +0000 (14:12 +0100)
test/testcases/choicerules/choice7.t [new file with mode: 0644]

diff --git a/test/testcases/choicerules/choice7.t b/test/testcases/choicerules/choice7.t
new file mode 100644 (file)
index 0000000..db821b6
--- /dev/null
@@ -0,0 +1,16 @@
+# make sure that orphaned packages do not get
+# deinstalled by choice rules bnc#1190465
+repo system 0 testtags <inline>
+#>=Pkg: A 1 1 noarch
+#>=Req: P = 1
+#>=Pkg: P 1 1 noarch
+repo available 0 testtags <inline>
+#>=Pkg: P 2 1 noarch
+#>=Pkg: Q 2 1 noarch
+#>=Prv: P = 1
+system i686 rpm system
+
+job distupgrade all packages
+result transaction,problems <inline>
+#>install Q-2-1.noarch@available
+#>upgrade P-1-1.noarch@system P-2-1.noarch@available