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 5099fa9..b21958b 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 7307a3d..f117c79 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 ();