Hello community,
here is the log from the commit of package yast2-update
checked in at Thu Apr 13 17:16:07 CEST 2006.
--------
--- yast2-update/yast2-update.changes 2006-04-12 12:51:41.000000000 +0200
+++ STABLE/yast2-update/yast2-update.changes 2006-04-13 10:59:54.000000000 +0200
@@ -1,0 +2,12 @@
+Thu Apr 13 10:58:44 CEST 2006 - locilka@suse.cz
+
+- New counting of packages for the update proposal (#162963).
+- 2.13.19
+
+-------------------------------------------------------------------
+Wed Apr 12 19:29:18 CEST 2006 - jsrain@suse.de
+
+- mount /sys before update (#165502)
+- 2.13.18
+
+-------------------------------------------------------------------
Old:
----
yast2-update-2.13.17.tar.bz2
New:
----
yast2-update-2.13.19.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-update.spec ++++++
--- /var/tmp/diff_new_pack.VeV9gl/_old 2006-04-13 17:15:18.000000000 +0200
+++ /var/tmp/diff_new_pack.VeV9gl/_new 2006-04-13 17:15:18.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-update (Version 2.13.17)
+# spec file for package yast2-update (Version 2.13.19)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,12 +11,12 @@
# norootforbuild
Name: yast2-update
-Version: 2.13.17
+Version: 2.13.19
Release: 1
License: GPL
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-update-2.13.17.tar.bz2
+Source0: yast2-update-2.13.19.tar.bz2
prefix: /usr
BuildRequires: docbook-xsl-stylesheets doxygen libxslt perl-XML-Writer sgml-skel update-desktop-files yast2 yast2-bootloader yast2-devtools yast2-mouse yast2-packager yast2-testsuite yast2-xml
Requires: yast2 yast2-installation yast2-storage yast2-packager
@@ -39,7 +39,7 @@
Arvin Schnell
%prep
-%setup -n yast2-update-2.13.17
+%setup -n yast2-update-2.13.19
%build
%{prefix}/bin/y2tool y2autoconf
@@ -74,6 +74,12 @@
%doc %{prefix}/share/doc/packages/yast2-update
%changelog -n yast2-update
+* Thu Apr 13 2006 - locilka@suse.cz
+- New counting of packages for the update proposal (#162963).
+- 2.13.19
+* Wed Apr 12 2006 - jsrain@suse.de
+- mount /sys before update (#165502)
+- 2.13.18
* Wed Apr 12 2006 - locilka@suse.cz
- Fixing number of packages marked to be `removed during the update
(#162963).
++++++ yast2-update-2.13.17.tar.bz2 -> yast2-update-2.13.19.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-update-2.13.17/VERSION new/yast2-update-2.13.19/VERSION
--- old/yast2-update-2.13.17/VERSION 2006-04-12 12:51:18.000000000 +0200
+++ new/yast2-update-2.13.19/VERSION 2006-04-13 10:58:37.000000000 +0200
@@ -1 +1 @@
-2.13.17
+2.13.19
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-update-2.13.17/configure new/yast2-update-2.13.19/configure
--- old/yast2-update-2.13.17/configure 2006-04-12 12:56:05.000000000 +0200
+++ new/yast2-update-2.13.19/configure 2006-04-13 11:03:04.000000000 +0200
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.59 for yast2-update 2.13.17.
+# Generated by GNU Autoconf 2.59 for yast2-update 2.13.19.
#
# Report bugs to http://www.suse.de/feedback.
#
@@ -269,8 +269,8 @@
# Identity of this package.
PACKAGE_NAME='yast2-update'
PACKAGE_TARNAME='yast2-update'
-PACKAGE_VERSION='2.13.17'
-PACKAGE_STRING='yast2-update 2.13.17'
+PACKAGE_VERSION='2.13.19'
+PACKAGE_STRING='yast2-update 2.13.19'
PACKAGE_BUGREPORT='http://www.suse.de/feedback'
ac_unique_file="RPMNAME"
@@ -728,7 +728,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-update 2.13.17 to adapt to many kinds of systems.
+\`configure' configures yast2-update 2.13.19 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -795,7 +795,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-update 2.13.17:";;
+ short | recursive ) echo "Configuration of yast2-update 2.13.19:";;
esac
cat <<\_ACEOF
@@ -908,7 +908,7 @@
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
-yast2-update configure 2.13.17
+yast2-update configure 2.13.19
generated by GNU Autoconf 2.59
Copyright (C) 2003 Free Software Foundation, Inc.
@@ -922,7 +922,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-update $as_me 2.13.17, which was
+It was created by yast2-update $as_me 2.13.19, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ $0 $@
@@ -1652,7 +1652,7 @@
# Define the identity of the package.
PACKAGE='yast2-update'
- VERSION='2.13.17'
+ VERSION='2.13.19'
cat >>confdefs.h <<_ACEOF
@@ -1863,7 +1863,7 @@
-VERSION="2.13.17"
+VERSION="2.13.19"
RPMNAME="yast2-update"
MAINTAINER="Jiri Srain "
@@ -2695,7 +2695,7 @@
} >&5
cat >&5 <<_CSEOF
-This file was extended by yast2-update $as_me 2.13.17, which was
+This file was extended by yast2-update $as_me 2.13.19, which was
generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -2750,7 +2750,7 @@
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-update config.status 2.13.17
+yast2-update config.status 2.13.19
configured by $0, generated by GNU Autoconf 2.59,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-update-2.13.17/configure.in new/yast2-update-2.13.19/configure.in
--- old/yast2-update-2.13.17/configure.in 2006-04-12 12:56:00.000000000 +0200
+++ new/yast2-update-2.13.19/configure.in 2006-04-13 11:02:58.000000000 +0200
@@ -3,7 +3,7 @@
dnl -- This file is generated by y2autoconf - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-update, 2.13.17, http://www.suse.de/feedback, yast2-update)
+AC_INIT(yast2-update, 2.13.19, http://www.suse.de/feedback, yast2-update)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -17,7 +17,7 @@
AM_INIT_AUTOMAKE(tar-ustar) dnl searches for some needed programs
dnl Important YaST2 variables
-VERSION="2.13.17"
+VERSION="2.13.19"
RPMNAME="yast2-update"
MAINTAINER="Jiri Srain "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-update-2.13.17/src/clients/update_proposal.ycp new/yast2-update-2.13.19/src/clients/update_proposal.ycp
--- old/yast2-update-2.13.17/src/clients/update_proposal.ycp 2006-04-12 12:49:50.000000000 +0200
+++ new/yast2-update-2.13.19/src/clients/update_proposal.ycp 2006-04-13 10:57:39.000000000 +0200
@@ -173,22 +173,35 @@
Update::products_incompatible = true;
}
}
+ // Pkg::GetPackages()
+ // `installed all installed packages
+ // `selected returns all selected but not yet installed packages
+ // `available returns all available packages (from the installation source)
+ // `removed all packages selected for removal
+
// recreate the update summary
list<string> installed = Pkg::GetPackages (`installed, true);
- list<string> selected = Pkg::GetPackages (`selected, true);
- integer removed_size = size(Pkg::GetPackages (`removed, true));
- y2milestone ("Selected: %1, Installed: %2, Removed: %3", size (selected), size (installed), removed_size);
-
- y2milestone("Removed: %1", Pkg::GetPackages (`removed, true));
+ list<string> selected = Pkg::GetPackages (`selected, true);
+ list<string> removed = Pkg::GetPackages (`removed, true);
+ integer cnt_installed = size (installed);
+ integer cnt_selected = size (selected);
+ integer cnt_removed = size (removed);
+ y2milestone ("Selected: %1, Installed: %2, Removed: %3", cnt_selected, cnt_installed, cnt_removed);
+ y2milestone("Removed: %1", removed);
map installed_m = listmap (string p, installed, {
return $[ p : true ];
});
+ // packages that are both 'installed' && 'selected'
Update::packages_to_update = size (filter (string p, selected, {
return haskey (installed_m, p);
}));
- Update::packages_to_install = size (selected) - Update::packages_to_update;
- Update::packages_to_remove = removed_size;
+ // packages that are 'selected' but not 'installed'
+ Update::packages_to_install = cnt_selected - Update::packages_to_update;
+ // packages that are 'removed' but not 'selected again'
+ Update::packages_to_remove = size (filter (string p, removed, {
+ return ! haskey (installed_m, p);
+ }));
y2milestone("Update statistics: Updated: %1, Installed: %2, Removed: %3",
Update::packages_to_update, Update::packages_to_install, Update::packages_to_remove);
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-update-2.13.17/src/modules/RootPart.ycp new/yast2-update-2.13.19/src/modules/RootPart.ycp
--- old/yast2-update-2.13.17/src/modules/RootPart.ycp 2006-04-03 09:20:11.000000000 +0200
+++ new/yast2-update-2.13.19/src/modules/RootPart.ycp 2006-04-13 10:57:02.000000000 +0200
@@ -6,7 +6,7 @@
* Purpose: Responsible for searching of root partitions and
* mounting of target partitions.
*
- * $Id: RootPart.ycp 29436 2006-03-27 14:59:55Z jsrain $
+ * $Id: RootPart.ycp 30086 2006-04-12 17:29:38Z jsrain $
*/
{
module "RootPart";
@@ -563,6 +563,13 @@
list allowed_fs = [ "ext", "ext2", "ext3", "minix", "reiserfs", "jfs",
"xfs", "xiafs", "hpfs", "vfat", "auto", "proc" ];
+ // mount sysfs first
+ string ret = MountPartition ("/sys", "sysfs", "sysfs");
+
+ if (ret == nil)
+ AddMountedPartition($[`type : "mount", `device : "sysfs", `mntpt : "/sys"]);
+
+
boolean success = true;
boolean raidMounted = false;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...