Hello community,
here is the log from the commit of package yast2-packager
checked in at Tue Jul 10 18:53:02 CEST 2007.
--------
--- yast2-packager/yast2-packager.changes 2007-07-04 11:38:52.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-packager/yast2-packager.changes 2007-07-10 10:04:27.000000000 +0200
@@ -1,0 +2,11 @@
+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'.
+- Added testsuite for OneClickInstallStandard module.
+- 2.15.44
+
+-------------------------------------------------------------------
Old:
----
yast2-packager-2.15.43.tar.bz2
New:
----
yast2-packager-2.15.44.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-packager.spec ++++++
--- /var/tmp/diff_new_pack.cF3605/_old 2007-07-10 18:52:32.000000000 +0200
+++ /var/tmp/diff_new_pack.cF3605/_new 2007-07-10 18:52:32.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-packager (Version 2.15.43)
+# spec file for package yast2-packager (Version 2.15.44)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,15 +11,17 @@
# norootforbuild
Name: yast2-packager
-Version: 2.15.43
+Version: 2.15.44
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-packager-2.15.43.tar.bz2
+Source0: yast2-packager-2.15.44.tar.bz2
prefix: /usr
-BuildRequires: docbook-xsl-stylesheets doxygen gcc-c++ libxcrypt-devel libxslt perl-XML-Writer sgml-skel update-desktop-files yast2-country yast2-devtools yast2-slp yast2-testsuite yast2-xml
+BuildRequires: docbook-xsl-stylesheets doxygen gcc-c++ libxcrypt-devel libxslt perl-XML-Simple perl-XML-Writer sgml-skel update-desktop-files yast2-country yast2-devtools yast2-perl-bindings yast2-slp yast2-testsuite yast2-xml
BuildRequires: yast2 >= 2.15.38
+# Module: OneClickInstallStandard
+Requires: perl-XML-Simple yast2-perl-bindings
Requires: yast2-country
Requires: yast2-installation >= 2.15.12
# Pkg::SourceGetBrokenSources()
@@ -49,7 +51,7 @@
Arvin Schnell
%prep
-%setup -n yast2-packager-2.15.43
+%setup -n yast2-packager-2.15.44
%build
%{prefix}/bin/y2tool y2autoconf
@@ -88,6 +90,14 @@
%doc %{prefix}/share/doc/packages/yast2-packager
%changelog
+* Mon Jul 09 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'.
+- Added testsuite for OneClickInstallStandard module.
+- 2.15.44
* Wed Jul 04 2007 - locilka@suse.cz
- Callback function for setting the trust level to the GnuPG key
has been merged with a function for importing the same key. By
++++++ yast2-packager-2.15.43.tar.bz2 -> yast2-packager-2.15.44.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-packager-2.15.43/src/modules/Makefile.am new/yast2-packager-2.15.44/src/modules/Makefile.am
--- old/yast2-packager-2.15.43/src/modules/Makefile.am 2007-05-18 10:43:18.000000000 +0200
+++ new/yast2-packager-2.15.44/src/modules/Makefile.am 2007-07-09 15:41:39.000000000 +0200
@@ -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
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-packager-2.15.43/src/modules/Makefile.in new/yast2-packager-2.15.44/src/modules/Makefile.in
--- old/yast2-packager-2.15.43/src/modules/Makefile.in 2007-07-04 11:39:17.000000000 +0200
+++ new/yast2-packager-2.15.44/src/modules/Makefile.in 2007-07-09 16:50:33.000000000 +0200
@@ -173,7 +173,7 @@
ydatadir = @ydatadir@
yncludedir = @yncludedir@
ystartupdir = @ystartupdir@
-module_DATA = $(wildcard [A-Z]*.ycp)
+module_DATA = $(wildcard [A-Z]*.ycp [A-Z]*.pm)
EXTRA_DIST = $(module_DATA)
modulebin_DATA = $(patsubst %.ycp,%.ybc,$(module_DATA))
modulebindir = $(moduledir)
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-packager-2.15.43/src/modules/OneClickInstallStandard.pm new/yast2-packager-2.15.44/src/modules/OneClickInstallStandard.pm
--- old/yast2-packager-2.15.43/src/modules/OneClickInstallStandard.pm 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-packager-2.15.44/src/modules/OneClickInstallStandard.pm 2007-07-09 15:25:54.000000000 +0200
@@ -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