Hello community,
here is the log from the commit of package yast2-packager
checked in at Thu Oct 9 20:00:36 CEST 2008.
--------
--- yast2-packager/yast2-packager.changes 2008-10-07 17:01:40.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-packager/yast2-packager.changes 2008-10-09 19:18:49.000000000 +0200
@@ -1,0 +2,7 @@
+Thu Oct 9 19:15:40 CEST 2008 - locilka@suse.cz
+
+- Function SelectKernelPackages has been moved to from update to
+ Packages module (bnc #326269).
+- 2.17.27
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
yast2-packager-2.17.26.tar.bz2
New:
----
yast2-packager-2.17.27.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-packager.spec ++++++
--- /var/tmp/diff_new_pack.Cu2054/_old 2008-10-09 20:00:26.000000000 +0200
+++ /var/tmp/diff_new_pack.Cu2054/_new 2008-10-09 20:00:26.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-packager (Version 2.17.26)
+# spec file for package yast2-packager (Version 2.17.27)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,12 +19,12 @@
Name: yast2-packager
-Version: 2.17.26
+Version: 2.17.27
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-packager-2.17.26.tar.bz2
+Source0: yast2-packager-2.17.27.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
# HTTP.ycp
@@ -78,7 +78,7 @@
Arvin Schnell
%prep
-%setup -n yast2-packager-2.17.26
+%setup -n yast2-packager-2.17.27
%build
%{prefix}/bin/y2tool y2autoconf
@@ -113,8 +113,11 @@
/usr/share/YaST2/scrconf/*
%{prefix}/lib/YaST2/servers_non_y2/ag_*
%doc %{prefix}/share/doc/packages/yast2-packager
-
%changelog
+* Thu Oct 09 2008 locilka@suse.cz
+- Function SelectKernelPackages has been moved to from update to
+ Packages module (bnc #326269).
+- 2.17.27
* Mon Oct 06 2008 locilka@suse.cz
- Using PackagesProposal (`package/s, `pattern/s) to unify the
software scenarios, desktops, and the rest of installation
++++++ yast2-packager-2.17.26.tar.bz2 -> yast2-packager-2.17.27.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-packager-2.17.26/configure new/yast2-packager-2.17.27/configure
--- old/yast2-packager-2.17.26/configure 2008-10-08 12:19:19.000000000 +0200
+++ new/yast2-packager-2.17.27/configure 2008-10-09 19:19:27.000000000 +0200
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.61 for yast2-packager 2.17.26.
+# Generated by GNU Autoconf 2.61 for yast2-packager 2.17.27.
#
# Report bugs to http://bugs.opensuse.org/.
#
@@ -574,8 +574,8 @@
# Identity of this package.
PACKAGE_NAME='yast2-packager'
PACKAGE_TARNAME='yast2-packager'
-PACKAGE_VERSION='2.17.26'
-PACKAGE_STRING='yast2-packager 2.17.26'
+PACKAGE_VERSION='2.17.27'
+PACKAGE_STRING='yast2-packager 2.17.27'
PACKAGE_BUGREPORT='http://bugs.opensuse.org/'
ac_unique_file="RPMNAME"
@@ -1197,7 +1197,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures yast2-packager 2.17.26 to adapt to many kinds of systems.
+\`configure' configures yast2-packager 2.17.27 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1268,7 +1268,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-packager 2.17.26:";;
+ short | recursive ) echo "Configuration of yast2-packager 2.17.27:";;
esac
cat <<\_ACEOF
@@ -1346,7 +1346,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-yast2-packager configure 2.17.26
+yast2-packager configure 2.17.27
generated by GNU Autoconf 2.61
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1360,7 +1360,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by yast2-packager $as_me 2.17.26, which was
+It was created by yast2-packager $as_me 2.17.27, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ $0 $@
@@ -2181,7 +2181,7 @@
# Define the identity of the package.
PACKAGE='yast2-packager'
- VERSION='2.17.26'
+ VERSION='2.17.27'
cat >>confdefs.h <<_ACEOF
@@ -2409,7 +2409,7 @@
-VERSION="2.17.26"
+VERSION="2.17.27"
RPMNAME="yast2-packager"
MAINTAINER="Ladislav Slezak "
@@ -3304,7 +3304,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by yast2-packager $as_me 2.17.26, which was
+This file was extended by yast2-packager $as_me 2.17.27, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -3347,7 +3347,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-packager config.status 2.17.26
+yast2-packager config.status 2.17.27
configured by $0, generated by GNU Autoconf 2.61,
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-packager-2.17.26/configure.in new/yast2-packager-2.17.27/configure.in
--- old/yast2-packager-2.17.26/configure.in 2008-10-08 12:19:16.000000000 +0200
+++ new/yast2-packager-2.17.27/configure.in 2008-10-09 19:19:24.000000000 +0200
@@ -3,7 +3,7 @@
dnl -- This file is generated by y2autoconf 2.17.6 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-packager, 2.17.26, http://bugs.opensuse.org/, yast2-packager)
+AC_INIT(yast2-packager, 2.17.27, http://bugs.opensuse.org/, yast2-packager)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -18,7 +18,7 @@
AM_INIT_AUTOMAKE(tar-ustar -Wno-portability)
dnl Important YaST2 variables
-VERSION="2.17.26"
+VERSION="2.17.27"
RPMNAME="yast2-packager"
MAINTAINER="Ladislav Slezak "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-packager-2.17.26/src/modules/Packages.ycp new/yast2-packager-2.17.27/src/modules/Packages.ycp
--- old/yast2-packager-2.17.26/src/modules/Packages.ycp 2008-10-07 17:01:51.000000000 +0200
+++ new/yast2-packager-2.17.27/src/modules/Packages.ycp 2008-10-09 19:19:11.000000000 +0200
@@ -3,7 +3,7 @@
* Package: Package selections
* Authors: Anas Nashif
*
- * $Id: Packages.ycp 51927 2008-10-07 15:01:53Z locilka $
+ * $Id: Packages.ycp 52055 2008-10-09 17:19:14Z locilka $
*/
{
@@ -1758,5 +1758,70 @@
return ret;
}
+ // see bug 302398
+ global define void SelectKernelPackages () {
+ list <list> provides = Pkg::PkgQueryProvides ("kernel");
+ // // e.g.: [["kernel-bigsmp", `CAND, `NONE], ["kernel-default", `CAND, `CAND], ["kernel-default", `BOTH, `INST]]
+ y2milestone ("provides: %1", provides);
+
+ // these kernels would be installed
+ list <list> kernels = filter (list l, provides, {
+ return l[1]:`NONE == `BOTH || l[1]:`NONE == l[2]:`NONE;
+ });
+
+ if (size (kernels) != 1)
+ y2warning ("not exactly one package provides tag kernel");
+
+ string selected_kernel = kernels[0,0]:"none";
+ list <string> recom_kernel = Kernel::ComputePackages ();
+ string recommended_kernel = recom_kernel[0]:"";
+
+ y2milestone ("Selected kernel: %1, recommended kernel: %2",
+ selected_kernel, recom_kernel);
+
+ // when the recommended Kernel is not available (installable)
+ if (recommended_kernel != "" && ! Pkg::IsAvailable (recommended_kernel)) {
+ recommended_kernel = selected_kernel;
+ }
+
+ // recommended package is different to the selected one
+ // select the recommended one
+ if (recommended_kernel != "" && recommended_kernel != selected_kernel) {
+ // list of kernels to be installed
+ list <string> kernels_to_be_installed = (list <string>) maplist (list one_kernel, kernels, {
+ return one_kernel[0]:nil;
+ });
+ kernels_to_be_installed = filter (string one_kernel, kernels_to_be_installed, {
+ return (one_kernel != nil && one_kernel != "");
+ });
+
+ // remove all kernels (with some exceptions)
+ foreach (string one_kernel, kernels_to_be_installed, {
+ // XEN can be installed in parallel
+ if (one_kernel == "kernel-xen") return;
+ // don't remove the recommended one
+ if (one_kernel == recommended_kernel) return;
+
+ // remove all packages of that kernel
+ list <string> packages_to_remove = Kernel::ComputePackagesForBase (one_kernel, false);
+ if (packages_to_remove != nil && size (packages_to_remove) > 0) {
+ y2milestone ("Removing installed packages %1", packages_to_remove);
+ Pkg::DoRemove (packages_to_remove);
+ }
+ });
+
+ // compute recommended kernel packages
+ list<string> kernel_packs = Kernel::ComputePackages ();
+
+ // installing all recommended packages
+ foreach (string p, kernel_packs, {
+ if (Pkg::IsProvided (p)) {
+ y2milestone ("Selecting package %1 for installation", p);
+ Pkg::PkgInstall (p);
+ }
+ });
+ }
+ }
+
/* EOF */
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-packager-2.17.26/VERSION new/yast2-packager-2.17.27/VERSION
--- old/yast2-packager-2.17.26/VERSION 2008-10-08 12:16:45.000000000 +0200
+++ new/yast2-packager-2.17.27/VERSION 2008-10-09 19:16:05.000000000 +0200
@@ -1 +1 @@
-2.17.26
+2.17.27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org