Author: locilka
Date: Mon Jul 9 15:56:44 2007
New Revision: 39252
URL: http://svn.opensuse.org/viewcvs/yast?rev=39252&view=rev
Log:
- Added new OneClickInstallStandard module written in Perl to
support XML format specified by One Click Install Standard
http://en.opensuse.org/Standards/One_Click_Install - Only
repositories are supported now.
- Added perl-XML-Simple to the spec file as 'Requires'.
Added:
trunk/packager/src/modules/OneClickInstallStandard.pm
Modified:
trunk/packager/package/yast2-packager.changes
trunk/packager/src/modules/Makefile.am
trunk/packager/yast2-packager.spec.in
Modified: trunk/packager/package/yast2-packager.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/package/yast2-packager.changes?rev=39252&r1=39251&r2=39252&view=diff
==============================================================================
--- trunk/packager/package/yast2-packager.changes (original)
+++ trunk/packager/package/yast2-packager.changes Mon Jul 9 15:56:44 2007
@@ -1,4 +1,13 @@
-------------------------------------------------------------------
+Mon Jul 9 15:52:53 CEST 2007 - locilka@suse.cz
+
+- Added new OneClickInstallStandard module written in Perl to
+ support XML format specified by One Click Install Standard
+ http://en.opensuse.org/Standards/One_Click_Install - Only
+ repositories are supported now.
+- Added perl-XML-Simple to the spec file as 'Requires'.
+
+-------------------------------------------------------------------
Wed Jul 4 10:57:55 CEST 2007 - locilka@suse.cz
- Callback function for setting the trust level to the GnuPG key
Modified: trunk/packager/src/modules/Makefile.am
URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/modules/Makefile.am?rev=39252&r1=39251&r2=39252&view=diff
==============================================================================
--- trunk/packager/src/modules/Makefile.am (original)
+++ trunk/packager/src/modules/Makefile.am Mon Jul 9 15:56:44 2007
@@ -1,5 +1,5 @@
# Makefile.am for packager/src/modules
-module_DATA = $(wildcard [A-Z]*.ycp)
+module_DATA = $(wildcard [A-Z]*.ycp [A-Z]*.pm)
EXTRA_DIST = $(module_DATA)
include $(top_srcdir)/Makefile.am.common
Added: trunk/packager/src/modules/OneClickInstallStandard.pm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/modules/OneClickInstallStandard.pm?rev=39252&view=auto
==============================================================================
--- trunk/packager/src/modules/OneClickInstallStandard.pm (added)
+++ trunk/packager/src/modules/OneClickInstallStandard.pm Mon Jul 9 15:56:44 2007
@@ -0,0 +1,133 @@
+#!/usr/bin/perl -w
+
+#
+# Module: OneClickInstallStandard.pm
+# Authors: Lukas Ocilka
+# Summary: Module for parsing One Click Install Standard
+# http://en.opensuse.org/Standards/One_Click_Install
+#
+
+package OneClickInstallStandard;
+
+use strict;
+
+use XML::Simple;
+
+use YaPI;
+use YaST::YCP;
+
+my %config = (
+ # evaluate everything as arrays
+ ForceArray => 1,
+ # remove the the first XML tag
+ KeepRoot => 0,
+ NoEscape => 1,
+ NoIndent => 1,
+ ForceContent => 1,
+ ContentKey => '-content',
+);
+
+our %TYPEINFO;
+
+##
+# Converts XML to a list of maps with all repositories described in the XML content.
+#
+# @param XML content as descibed at http://en.opensuse.org/Standards/One_Click_Install
+# @return list