[zypp-devel] Re: [yast-internal] Fwd: [Research] question on export function of yast2 "sw_single" module on SLES9
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
On Thursday 22 October 2009 10:34:28 Thomas Goettlicher wrote:
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.
ma already did ;) (on research@) Summary (for those who did not follow): do not use that feature, it's a hack. hB. -- \\\\\ Katarina Machalkova \\\\\\\__o YaST developer __\\\\\\\'/_ & hedgehog painter -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
On Thursday 22 October 2009 11:03:12 Katarina Machalkova wrote:
On Thursday 22 October 2009 10:34:28 Thomas Goettlicher wrote:
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.
ma already did ;) (on research@) Summary (for those who did not follow): do not use that feature, it's a hack.
Better say: Don't restrore on different hardware or distribution. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres YaST Development ma@novell.com SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
participants (3)
-
Katarina Machalkova
-
Michael Andres
-
Thomas Goettlicher