--- /dev/null
+>!> Installing patch-B1 from channel new_source
+>!> 1 problems found:
+>!> Problem:
+>!> This would invalidate atom:A-1.0-1.i586.
+>!> atom:A-1.0-1.i586 has unfulfilled requirements
+>!> Solution:
+>!> delete A
+>!> delete atom:A-1.0-1.i586
--- /dev/null
+<?xml version="1.0"?>
+<!--
+ patch-B1 will be installed. patch-A1 has an atom with the same
+ same. No error concerning parallel installation of the atom will
+ be displayed BUT atom of patch-A1 NEEDS the older version of
+ package A. So this error will be displayed.
+-->
+<test>
+<setup>
+ <arch name="i586"/>
+ <system file="patchA-fail-installed.xml"/>
+ <channel file="patchB-new.xml" name="new_source"/>
+</setup>
+<trial>
+ <install channel="new_source" kind="patch" package="patch-B1"/>
+ <reportproblems/>
+</trial>
+</test>
--- /dev/null
+>!> Installing patch-B1 from channel new_source
+>!> No problems so far
+>!> Solution #1:
+>!> install patch:patch-B1-1-0.noarch[new_source]
+>!> upgrade A-1.0-1.i586 => A-2.0-1.i586[new_source]
+>!> upgrade atom:A-1.0-1.i586 => atom:A-2.0-1.i586[new_source]
+>!> installs=1, upgrades=2, uninstalls=0
<?xml version="1.0"?>
<!--
- load patch data from armstrong.suse.de
+ patch-B1 will be installed. patch-A1 has an atom with the same
+ same. No error concerning parallel installation of the atom will
+ be displayed and patch-B1 will be installed
-->
<test>
<setup>
--- /dev/null
+>!> Installing patch-A1 from channel new_source
+>!> No problems so far
+>!> Solution #1:
+>!> upgrade A-1.0-1.i586 => A-2.0-1.i586[new_source]
+>!> upgrade atom:A-1.0-1.i586 => atom:A-2.0-1.i586[new_source]
+>!> upgrade patch:patch-A1-1-0.noarch => patch:patch-A1-2-0.noarch[new_source]
+>!> installs=0, upgrades=3, uninstalls=0
--- /dev/null
+<?xml version="1.0"?>
+<!--
+ patch-A1 with the NEW version installed. patch-A1 has an atom with the same
+ same. No error concerning parallel installation of the atom will
+ be displayed and patch-A1 will be updated.
+-->
+<test>
+<setup>
+ <arch name="i586"/>
+ <system file="patchA-installed.xml"/>
+ <channel file="patchA-new.xml" name="new_source"/>
+</setup>
+<trial>
+ <install channel="new_source" kind="patch" package="patch-A1"/>
+ <reportproblems/>
+</trial>
+</test>
--- /dev/null
+<channel><subchannel>
+<package>
+ <name>A</name>
+ <summary>A fake package</summary>
+ <description>A fake package</description>
+ <section>misc</section>
+ <history>
+ <update>
+ <hid>12345</hid>
+ <arch>i586</arch>
+ <epoch>0</epoch>
+ <version>1.0</version>
+ <release>1</release>
+ <filename>foo.bar</filename>
+ <filesize>123</filesize>
+ <installedsize>234</installedsize>
+ <md5sum>0f55f36a3240858038a281911605024e</md5sum>
+ <importance>suggested</importance>
+ <description>Yggdrasil Linux</description>
+ </update>
+ </history>
+</package>
+<patch>
+ <name>patch-A1</name>
+ <arch>noarch</arch>
+ <version>1</version>
+ <release>0</release>
+ <requires>
+ <dep kind="atom" name="A" op="=" version="1.0" release="1"/>
+ </requires>
+</patch>
+<atom>
+ <name>A</name>
+ <arch>i586</arch>
+ <version>1.0</version>
+ <release>1</release>
+ <freshens>
+ <dep kind="package" name="A"/>
+ </freshens>
+ <requires>
+ <dep kind="package" name="A" op="=" version="1.0" release="1"/>
+ </requires>
+</atom>
+</subchannel></channel>
<dep kind="package" name="A"/>
</freshens>
<requires>
- <dep kind="package" name="A" op="=" version="1.0" release="1"/>
+ <dep kind="package" name="A" op=">" version="1.0" release="1"/>
</requires>
</atom>
</subchannel></channel>
--- /dev/null
+<channel><subchannel>
+<package>
+ <name>A</name>
+ <summary>A fake package</summary>
+ <description>A fake package</description>
+ <section>misc</section>
+ <history>
+ <update>
+ <hid>12345</hid>
+ <arch>i586</arch>
+ <epoch>0</epoch>
+ <version>2.0</version>
+ <release>1</release>
+ <filename>foo.bar</filename>
+ <filesize>123</filesize>
+ <installedsize>234</installedsize>
+ <md5sum>0f55f36a3240858038a281911605024e</md5sum>
+ <importance>suggested</importance>
+ <description>Yggdrasil Linux</description>
+ </update>
+ </history>
+</package>
+<patch>
+ <name>patch-A1</name>
+ <arch>noarch</arch>
+ <version>2</version>
+ <release>0</release>
+ <requires>
+ <dep kind="atom" name="A" op="=" version="2.0" release="1"/>
+ </requires>
+</patch>
+<atom>
+ <name>A</name>
+ <arch>i586</arch>
+ <version>2.0</version>
+ <release>1</release>
+ <freshens>
+ <dep kind="package" name="A"/>
+ </freshens>
+ <requires>
+ <dep kind="package" name="A" op="=" version="2.0" release="1"/>
+ </requires>
+</atom>
+</subchannel></channel>