#>=Pkg: B 2 1 noarch
repo test 0 testtags <inline>
#>=Pkg: A 2 1 noarch
-#>=Req: B = 1
+#>=Req: B = 1-1
#>=Pkg: B 1 1 noarch
-system i686 rpm system
-job install name A = 2 [cleandeps]
+system unset deb system
+job install name A = 2-1 [cleandeps]
result transaction,problems <inline>
-#>problem b5abcb9c info package A-2-1.noarch requires B = 1, but none of the providers can be installed
-#>problem b5abcb9c solution 37b448af deljob install name A = 2 [cleandeps]
+#>problem b5abcb9c info package A-2-1.noarch requires B = 1-1, but none of the providers can be installed
+#>problem b5abcb9c solution 3b3a37c0 deljob install name A = 2-1 [cleandeps]
#>problem b5abcb9c solution 3c170283 replace B-2-1.noarch@system B-1-1.noarch@test
#>=Prv: AA
#>=Pkg: B 1 1 x86_64
#>=Prv: AA
-system x86_64 rpm system
+system x86_64 * system
job erase provides AA [weak]
job install pkg B-1-1.x86_64@system
result transaction,problems <inline>
#
# testcase to check enabling/disabling of learnt rules
#
-repo system 0 testtags mm-system.repo.gz
-repo test 0 testtags mm-packages.repo.gz
-system i686 rpm system
+repo system 0 testtags <inline>
+#>=Ver: 2.0
+#>=Pkg: A 1.0 1 noarch
+#>=Req: D
+#>=Prv: A = 1.0-1
+#>=Con: C
+#>=Pkg: C 1.0 1 noarch
+#>=Prv: foo
+#>=Prv: C = 1.0-1
+#>=Con: D
+#>=Pkg: D 1.0 1 noarch
+#>=Prv: D = 1.0-1
+#>=Pkg: A2 1.0 1 noarch
+#>=Req: D2
+#>=Prv: A2 = 1.0-1
+#>=Con: C2
+#>=Pkg: C2 1.0 1 noarch
+#>=Prv: foo
+#>=Prv: C2 = 1.0-1
+#>=Con: D2
+#>=Pkg: D2 1.0 1 noarch
+#>=Prv: D2 = 1.0-1
+repo test 0 testtags <inline>
+#>=Ver: 2.0
+#>=Pkg: C 2.0 1 noarch
+#>=Prv: C = 2.0-1
+#>=Pkg: A 2.0 1 noarch
+#>=Prv: A = 2.0-1
+#>=Pkg: D 2.0 1 noarch
+#>=Prv: D = 2.0-1
+#>=Pkg: C2 2.0 1 noarch
+#>=Prv: C2 = 2.0-1
+#>=Pkg: A2 2.0 1 noarch
+#>=Prv: A2 = 2.0-1
+#>=Pkg: D2 2.0 1 noarch
+#>=Prv: D2 = 2.0-1
+#>=Pkg: E 2.0 1 noarch
+#>=Req: foo
+#>=Prv: E = 2.0-1
+system unset * system
job install provides E
job verify all packages
result transaction,problems <inline>