Mailinglist Archive: zypp-devel (51 mails)

< Previous Next >
[zypp-devel] Re: [yast-internal] Fwd: [Research] question on export function of yast2 "sw_single" module on SLES9
  • From: Thomas Goettlicher <thomas.goettlicher@xxxxxxx>
  • Date: Thu, 22 Oct 2009 10:34:28 +0200
  • Message-id: <200910221034.30373.thomas.goettlicher@xxxxxxx>
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 <jechristensen@xxxxxxxxxx>
Reply-To: research@xxxxxxx
To: research@xxxxxxx

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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups