Author: kkaempf Date: Wed May 14 17:18:34 2008 New Revision: 10090 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10090&view=rev Log: how to generate updateinfo.xml from 'Code10' patches Added: trunk/sat-solver/bindings/ruby/tests/gen_all_patches_from_xml Added: trunk/sat-solver/bindings/ruby/tests/gen_all_patches_from_xml URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/gen_all_patches_from_xml?rev=10090&view=auto ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/gen_all_patches_from_xml (added) +++ trunk/sat-solver/bindings/ruby/tests/gen_all_patches_from_xml Wed May 14 17:18:34 2008 @@ -0,0 +1,30 @@ +# +# Creating a patchesinfo.solv (updateinfo format) file from SUSE patches +# + +# +# assume we work from within the Ruby tests +# + +cd sat-solver/bindings/ruby/tests + +# +# create a patches/ sub-directory +# +mkdir patches + +ä +# parse every .xml patch file to a .solv file +# (one .solv per patch.xml) +# +for i in /mounts/mirror/SuSE/zypp-patches.suse.de/x86_64/update/SUSE-SLES/10/repodata/patch*.xml;do ../../../build/tools/patchxml2solv < $i > patches/`basename $i .xml`.solv; done + +# +# read all .solv files and generate a single 'updateinfo.xml' file +# +ruby patchsolv2updateinfo.rb > updateinfo.xml + +# +# convert the patchesinfo.xml to a updateinfo.solv file +# +../../../build/tools/updateinfoxml2solv < updateinfo.xml > updateinfo.solv -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org