--- /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>
+ <epoch>0</epoch>
+ <version>1.0</version>
+ <release>1</release>
+ <arch>i386</arch>
+ <filename>foo.bar</filename>
+ <filesize>123</filesize>
+ <installedsize>234</installedsize>
+ <md5sum>0f55f36a3240858038a281911605024e</md5sum>
+ <importance>suggested</importance>
+ <description>Yggdrasil Linux</description>
+ </update>
+ </history>
+</package>
+</subchannel></channel>
--- /dev/null
+>!> Installing B from channel test
+>!> 1 problems found:
+>!> Problem:
+>!> B cannot be installed due to missing dependencies
+>!> There are no installable providers of A == 1.1 for B-1.0-2.i686[test]
+>!> Solution:
+>!> Install A although it would change the architecture
+>!> A-1.1-2.i686[test] provides this dependency but would changed the architecture of the installed item
+>!> Solution:
+>!> do not install B
+>!> do not install B-1.0-2.i686[test]
+>!> Solution:
+>!> Ignore this requirement just here
+>!>
+>!> Taking solution: 0
+>!> For problem: 0
+>!> No problems so far
+>!> No problems so far
+>!> Solution #1:
+>!> install B-1.0-2.i686[test]
+>!> upgrade A-1.0-1.i386 => A-1.1-2.i686[test]
+>!> installs=1, upgrades=1, uninstalls=0
--- /dev/null
+<?xml version="1.0"?>
+<!--
+ Upgrade leads to architecture change
+
+ A-1.0-1.i386 is installed
+ Install package B which requires A == 1.1
+ A-1.1.i686 is available - -> error
+-->
+<test>
+<setup>
+ <system file="arch3-i686-package.xml"/>
+ <channel name="test" file="arch3-x86_64-package.xml"/>
+ <arch name="i686"/>
+</setup>
+<trial>
+ <install channel="test" package="B"/>
+ <reportproblems/>
+ <takesolution problem="0" solution="0"/>
+ <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>
+ <epoch>0</epoch>
+ <version>1.1</version>
+ <release>2</release>
+ <arch>i686</arch>
+ <filename>foo.bar</filename>
+ <filesize>123</filesize>
+ <installedsize>234</installedsize>
+ <md5sum>0f55f36a3240858038a281911605024e</md5sum>
+ <importance>suggested</importance>
+ <description>Yggdrasil Linux</description>
+ </update>
+ </history>
+</package>
+
+<package>
+ <name>B</name>
+ <summary>A fake package</summary>
+ <description>A fake package</description>
+ <section>misc</section>
+ <history>
+ <update>
+ <hid>12345</hid>
+ <epoch>0</epoch>
+ <version>1.0</version>
+ <release>2</release>
+ <arch>i686</arch>
+ <filename>foo.bar</filename>
+ <filesize>123</filesize>
+ <installedsize>234</installedsize>
+ <md5sum>0f55f36a3240858038a281911605024e</md5sum>
+ <importance>suggested</importance>
+ <description>Yggdrasil Linux</description>
+ </update>
+ </history>
+ <requires>
+ <dep kind="package" name="A" op='=' version='1.1' />
+ </requires>
+</package>
+
+</subchannel></channel>