Hello community,
here is the log from the commit of package yast2-packager
checked in at Mon Apr 21 18:59:02 CEST 2008.
--------
--- yast2-packager/yast2-packager.changes 2008-04-18 15:39:37.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-packager/yast2-packager.changes 2008-04-21 15:43:55.000000000 +0200
@@ -1,0 +2,8 @@
+Mon Apr 21 14:17:55 CEST 2008 - locilka@suse.cz
+
+- Added new function DefaultDesktop::SelectedDesktops() to list all
+ installed desktops or desktop selected for installation
+ (bnc #380774).
+- 2.16.37
+
+-------------------------------------------------------------------
Old:
----
yast2-packager-2.16.36.tar.bz2
New:
----
yast2-packager-2.16.37.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-packager.spec ++++++
--- /var/tmp/diff_new_pack.bs4693/_old 2008-04-21 18:58:46.000000000 +0200
+++ /var/tmp/diff_new_pack.bs4693/_new 2008-04-21 18:58:46.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-packager (Version 2.16.36)
+# spec file for package yast2-packager (Version 2.16.37)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -12,12 +12,12 @@
Name: yast2-packager
-Version: 2.16.36
+Version: 2.16.37
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-packager-2.16.36.tar.bz2
+Source0: yast2-packager-2.16.37.tar.bz2
Prefix: /usr
BuildRequires: gcc-c++ libxcrypt-devel perl-XML-Writer update-desktop-files yast2-country-data yast2-devtools yast2-slp yast2-testsuite yast2-xml
# empty package callbacks
@@ -72,7 +72,7 @@
Arvin Schnell
%prep
-%setup -n yast2-packager-2.16.36
+%setup -n yast2-packager-2.16.37
%build
%{prefix}/bin/y2tool y2autoconf
@@ -108,6 +108,11 @@
%{prefix}/lib/YaST2/servers_non_y2/ag_*
%doc %{prefix}/share/doc/packages/yast2-packager
%changelog
+* Mon Apr 21 2008 locilka@suse.cz
+- Added new function DefaultDesktop::SelectedDesktops() to list all
+ installed desktops or desktop selected for installation
+ (bnc #380774).
+- 2.16.37
* Fri Apr 18 2008 locilka@suse.cz
- Do not overwrite passwd and shadow files if they already exist on
a system (e.g., from images) (bnc #381227).
++++++ yast2-packager-2.16.36.tar.bz2 -> yast2-packager-2.16.37.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-packager-2.16.36/src/modules/DefaultDesktop.ycp new/yast2-packager-2.16.37/src/modules/DefaultDesktop.ycp
--- old/yast2-packager-2.16.36/src/modules/DefaultDesktop.ycp 2008-04-16 13:37:21.000000000 +0200
+++ new/yast2-packager-2.16.37/src/modules/DefaultDesktop.ycp 2008-04-21 14:17:36.000000000 +0200
@@ -13,7 +13,7 @@
textdomain "packager";
import "ProductFeatures";
-
+import "Installation";
// Could be defined in control file
// @see GetAllDesktopsMap
@@ -82,6 +82,47 @@
}
/**
+ * Return list installed desktops or desktop selected for installation.
+ *
+ * @see GetAllDesktopsMap
+ */
+global list <string> SelectedDesktops () {
+ Pkg::TargetInit (Installation::destdir, true);
+ Pkg::SourceStartManager (true);
+ Pkg::PkgSolve (true);
+
+ list <string> all_sel_or_inst_patterns = maplist (map one_pattern, Pkg::ResolvableProperties ("", `pattern, ""), {
+ if (one_pattern["status"]:`unknown == `selected || one_pattern["status"]:`unknown == `installed) {
+ return one_pattern["name"]:"";
+ }
+ });
+
+ // all selected or installed patterns
+ all_sel_or_inst_patterns = filter (string one_pattern, all_sel_or_inst_patterns, {
+ return (one_pattern != nil);
+ });
+
+ list <string> selected_desktops = [];
+ boolean selected = true;
+
+ foreach (string desktop_name, map desktop_def, all_desktops, {
+ selected = true;
+
+ foreach (string one_pattern, desktop_def["patterns"]:[], {
+ if (! contains (all_sel_or_inst_patterns, one_pattern)) {
+ selected = false;
+ return;
+ }
+ });
+
+ if (selected)
+ selected_desktops = add (selected_desktops, desktop_name);
+ });
+
+ return selected_desktops;
+}
+
+/**
* Desktop which was selected in the desktop selection dialog
* "kde", "gnome", "min_x11", "text"
*/
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-packager-2.16.36/VERSION new/yast2-packager-2.16.37/VERSION
--- old/yast2-packager-2.16.36/VERSION 2008-04-18 15:39:45.000000000 +0200
+++ new/yast2-packager-2.16.37/VERSION 2008-04-21 15:43:46.000000000 +0200
@@ -1 +1 @@
-2.16.36
+2.16.37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org