adding system architecture
authorStefan Schubert <schubi@suse.de>
Wed, 25 Oct 2006 12:56:41 +0000 (12:56 +0000)
committerStefan Schubert <schubi@suse.de>
Wed, 25 Oct 2006 12:56:41 +0000 (12:56 +0000)
zypp/solver/detail/Testcase.cc
zypp/solver/detail/Testcase.h

index 5099fa96c07daa5b1fb9d0b239b44faecc131778..b21958b1411640af0b6b03b4c6000db45799920e 100644 (file)
@@ -248,7 +248,8 @@ bool Testcase::createTestcase(Resolver & resolver)
     // writing control file "*-test.xml"
 
     HelixControl control (dumpPath + "/solver-test.xml",
-                         sourceTable);
+                         sourceTable,
+                         resolver.architecture());
 
     for (PoolItemList::const_iterator iter = items_to_install.begin(); iter != items_to_install.end(); iter++) {
        control.installResolvable (iter->resolvable()); 
@@ -289,6 +290,7 @@ void HelixResolvable::addResolvable(const Resolvable::constPtr &resolvable)
 
 HelixControl::HelixControl(const std::string & controlPath,
                           const SourceTable & sourceTable,
+                          const Arch & systemArchitecture,                        
                           const std::string & systemPath)
     :dumpFile (controlPath) 
 {
@@ -300,7 +302,7 @@ HelixControl::HelixControl(const std::string & controlPath,
     *file << "<?xml version=\"1.0\"?>" << endl
          << "<!-- testcase generated by YaST -->" << endl
          << "<test>" << endl
-         << "<setup>" << endl
+         << "<setup arch=\"" << systemArchitecture << "\">" << endl
          << TAB << "<system file=\"" << systemPath << "\"/>" << endl;
     for ( SourceTable::const_iterator it = sourceTable.begin();
          it != sourceTable.end(); ++it ) {
index 7307a3d350b95ee33bd97bb2b04dbdc0138867ec..f117c79a89a0596d860aa31c2bbe2a2a08e3987f 100644 (file)
@@ -94,6 +94,7 @@ class  HelixControl {
   public:
     HelixControl (const std::string & controlPath,
                  const SourceTable & sourceTable,
+                 const Arch & systemArchitecture,
                  const std::string & systemPath = "solver-system.xml");
     HelixControl ();    
     ~HelixControl ();