Hi Ladislav, some libzypp magic is used in yast2-qt-pkg to generate the xml file. I hope zypp guys can help you with an answer. Thomas zypp::syscontent::Writer writer; const zypp::ResPool & pool = zypp::getZYpp()->pool(); for_each( pool.begin(), pool.end(), boost::bind( &zypp::syscontent::Writer::addIf, boost::ref( writer ), _1 ) ); std::ofstream exportFile( toUTF8( filename ).c_str() ); exportFile.exceptions( std::ios_base::badbit | std::ios_base::failbit ); exportFile << writer; On Wednesday 21 October 2009 14:02:17 Ladislav Slezak wrote:
I don't know the details, forwarding to the yast mailing list...
Thomas, Bubli?
-------- Original Message -------- Subject: [Research] question on export function of yast2 "sw_single" module on SLES9 Date: Tue, 20 Oct 2009 07:11:20 -0600 From: Jeff R Christensen
Reply-To: research@suse.de To: research@suse.de Hi All,
I'm not sure that any one can readily help me with this question, but wanted to through this out to the list of someone that may know.
HP has asked me the following on behalf of one of their customers:
******************** Customer is seeking syntax documentation of XML file created from File -> Export in "yast2 sw_single". Customer has many SLES9 systems and now wants to migrate to SLES11, but XML format of "user-packages.xml" is different from SLES9 to SLES11. Customer uses this files/functionality for system installations and recovery policies.
But now ithe usage of "pattern" troubles the simple customization. So they request if there s any way to force the system to export a list of packages only. *******************
What they are looking for is any documentation on the "sw_single" and how it formats the XML that it produces.
Is there such documentation on this and if so where might it be?
Thanks so much for any help you can give me.
Jeff R. Christensen Advantage OS Novell, Inc.
-- Thomas Göttlicher - Software Engineer SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Maxfeldstraße 5 - 90409 Nürnberg - Germany -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org