Hello community,
here is the log from the commit of package yast2-pkg-bindings
checked in at Thu Jan 24 18:02:24 CET 2008.
--------
--- yast2-pkg-bindings/yast2-pkg-bindings.changes 2008-01-17 13:13:26.000000000 +0100
+++ /mounts/work_src_done/STABLE/yast2-pkg-bindings/yast2-pkg-bindings.changes 2008-01-24 13:30:47.037737000 +0100
@@ -1,0 +2,8 @@
+Thu Jan 24 11:14:20 CET 2008 - lslezak@suse.cz
+
+- Pkg::TargetInit(), Pkg::TargetLoad(), Pkg::SourceStartManager(),
+ Pkg::SourceStartCache() - don't display callbacks for repeated
+ calls (avoids flashing windows with no action)
+- 2.16.12
+
+-------------------------------------------------------------------
Old:
----
yast2-pkg-bindings-2.16.11.tar.bz2
New:
----
yast2-pkg-bindings-2.16.12.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-pkg-bindings-devel-doc.spec ++++++
--- /var/tmp/diff_new_pack.l26483/_old 2008-01-24 18:01:42.000000000 +0100
+++ /var/tmp/diff_new_pack.l26483/_new 2008-01-24 18:01:42.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-pkg-bindings-devel-doc (Version 2.16.11)
+# spec file for package yast2-pkg-bindings-devel-doc (Version 2.16.12)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,12 +11,12 @@
# norootforbuild
Name: yast2-pkg-bindings-devel-doc
-Version: 2.16.11
+Version: 2.16.12
Release: 1
License: GPL v2 or later
Group: Documentation/HTML
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-pkg-bindings-2.16.11.tar.bz2
+Source0: yast2-pkg-bindings-2.16.12.tar.bz2
Prefix: /usr
# same as in the main package (because we use the same configure.in.in)
BuildRequires: blocxx-devel boost boost-devel dbus-1-devel docbook-xsl-stylesheets doxygen gcc-c++ hal-devel libgcrypt-devel libxcrypt-devel libxslt libzypp libzypp-devel perl-XML-Writer rpm-devel sgml-skel yast2-core-devel yast2-devtools
@@ -37,7 +37,7 @@
Ladislav Slez�k
%prep
-%setup -n yast2-pkg-bindings-2.16.11
+%setup -n yast2-pkg-bindings-2.16.12
# build only documentation, ignore all other directories
echo "doc" > SUBDIRS
++++++ yast2-pkg-bindings.spec ++++++
--- /var/tmp/diff_new_pack.l26483/_old 2008-01-24 18:01:42.000000000 +0100
+++ /var/tmp/diff_new_pack.l26483/_new 2008-01-24 18:01:42.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-pkg-bindings (Version 2.16.11)
+# spec file for package yast2-pkg-bindings (Version 2.16.12)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,12 +11,12 @@
# norootforbuild
Name: yast2-pkg-bindings
-Version: 2.16.11
+Version: 2.16.12
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-pkg-bindings-2.16.11.tar.bz2
+Source0: yast2-pkg-bindings-2.16.12.tar.bz2
Prefix: /usr
BuildRequires: blocxx-devel boost boost-devel dbus-1-devel docbook-xsl-stylesheets doxygen gcc-c++ hal-devel libgcrypt-devel libxcrypt-devel libxslt perl-XML-Writer rpm-devel sgml-skel yast2-core-devel yast2-devtools
BuildRequires: libzypp-devel >= 4.1.8
@@ -40,7 +40,7 @@
Stanislav Visnovsky
%prep
-%setup -n yast2-pkg-bindings-2.16.11
+%setup -n yast2-pkg-bindings-2.16.12
# build only the library, ignore documentation (it is in devel-doc package)
echo "src" > SUBDIRS
@@ -72,6 +72,11 @@
%{_libdir}/YaST2/plugin/libpy2Pkg.so
%doc %{prefix}/share/doc/packages/yast2-pkg-bindings
%changelog
+* Thu Jan 24 2008 lslezak@suse.cz
+- Pkg::TargetInit(), Pkg::TargetLoad(), Pkg::SourceStartManager(),
+ Pkg::SourceStartCache() - don't display callbacks for repeated
+ calls (avoids flashing windows with no action)
+- 2.16.12
* Thu Jan 17 2008 lslezak@suse.cz
- GPG key callbacks - pass a map with key information in one
parameter (instead of 2 or 3 parameters), the map contains more
++++++ yast2-pkg-bindings-2.16.11.tar.bz2 -> yast2-pkg-bindings-2.16.12.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.16.11/configure new/yast2-pkg-bindings-2.16.12/configure
--- old/yast2-pkg-bindings-2.16.11/configure 2008-01-17 13:06:00.000000000 +0100
+++ new/yast2-pkg-bindings-2.16.12/configure 2008-01-24 13:29:44.000000000 +0100
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.61 for yast2-pkg-bindings 2.16.11.
+# Generated by GNU Autoconf 2.61 for yast2-pkg-bindings 2.16.12.
#
# Report bugs to http://bugs.opensuse.org/.
#
@@ -728,8 +728,8 @@
# Identity of this package.
PACKAGE_NAME='yast2-pkg-bindings'
PACKAGE_TARNAME='yast2-pkg-bindings'
-PACKAGE_VERSION='2.16.11'
-PACKAGE_STRING='yast2-pkg-bindings 2.16.11'
+PACKAGE_VERSION='2.16.12'
+PACKAGE_STRING='yast2-pkg-bindings 2.16.12'
PACKAGE_BUGREPORT='http://bugs.opensuse.org/'
ac_unique_file="RPMNAME"
@@ -1447,7 +1447,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-pkg-bindings 2.16.11 to adapt to many kinds of systems.
+\`configure' configures yast2-pkg-bindings 2.16.12 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1518,7 +1518,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-pkg-bindings 2.16.11:";;
+ short | recursive ) echo "Configuration of yast2-pkg-bindings 2.16.12:";;
esac
cat <<\_ACEOF
@@ -1627,7 +1627,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-yast2-pkg-bindings configure 2.16.11
+yast2-pkg-bindings configure 2.16.12
generated by GNU Autoconf 2.61
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1641,7 +1641,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-pkg-bindings $as_me 2.16.11, which was
+It was created by yast2-pkg-bindings $as_me 2.16.12, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ $0 $@
@@ -2462,7 +2462,7 @@
# Define the identity of the package.
PACKAGE='yast2-pkg-bindings'
- VERSION='2.16.11'
+ VERSION='2.16.12'
cat >>confdefs.h <<_ACEOF
@@ -2690,7 +2690,7 @@
-VERSION="2.16.11"
+VERSION="2.16.12"
RPMNAME="yast2-pkg-bindings"
MAINTAINER="Ladislav Slezák "
@@ -21199,7 +21199,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by yast2-pkg-bindings $as_me 2.16.11, which was
+This file was extended by yast2-pkg-bindings $as_me 2.16.12, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -21252,7 +21252,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-pkg-bindings config.status 2.16.11
+yast2-pkg-bindings config.status 2.16.12
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-pkg-bindings-2.16.11/configure.in new/yast2-pkg-bindings-2.16.12/configure.in
--- old/yast2-pkg-bindings-2.16.11/configure.in 2008-01-17 13:05:49.000000000 +0100
+++ new/yast2-pkg-bindings-2.16.12/configure.in 2008-01-24 13:29:34.000000000 +0100
@@ -3,7 +3,7 @@
dnl -- This file is generated by y2autoconf 2.16.3 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-pkg-bindings, 2.16.11, http://bugs.opensuse.org/, yast2-pkg-bindings)
+AC_INIT(yast2-pkg-bindings, 2.16.12, http://bugs.opensuse.org/, yast2-pkg-bindings)
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.16.11"
+VERSION="2.16.12"
RPMNAME="yast2-pkg-bindings"
MAINTAINER="Ladislav Slezák "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.16.11/src/PkgFunctions.cc new/yast2-pkg-bindings-2.16.12/src/PkgFunctions.cc
--- old/yast2-pkg-bindings-2.16.11/src/PkgFunctions.cc 2008-01-03 13:50:21.000000000 +0100
+++ new/yast2-pkg-bindings-2.16.12/src/PkgFunctions.cc 2008-01-23 15:24:20.000000000 +0100
@@ -54,6 +54,7 @@
*/
PkgFunctions::PkgFunctions () :
_target_root( "/" )
+ , _target_loaded(false)
, zypp_pointer(NULL)
,_callbackHandler( *new CallbackHandler(*this) )
{
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.16.11/src/PkgFunctions.h new/yast2-pkg-bindings-2.16.12/src/PkgFunctions.h
--- old/yast2-pkg-bindings-2.16.11/src/PkgFunctions.h 2008-01-15 12:45:51.000000000 +0100
+++ new/yast2-pkg-bindings-2.16.12/src/PkgFunctions.h 2008-01-23 15:24:00.000000000 +0100
@@ -68,6 +68,7 @@
protected:
zypp::Pathname _target_root;
+ bool _target_loaded;
zypp::ZYpp::Ptr zypp_pointer;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.16.11/src/Source_Load.cc new/yast2-pkg-bindings-2.16.12/src/Source_Load.cc
--- old/yast2-pkg-bindings-2.16.11/src/Source_Load.cc 2008-01-03 16:05:59.000000000 +0100
+++ new/yast2-pkg-bindings-2.16.12/src/Source_Load.cc 2008-01-24 12:39:28.000000000 +0100
@@ -19,7 +19,7 @@
*/
/*
- File: $Id: Source_Load.cc 43261 2008-01-03 15:05:57Z lslezak $
+ File: $Id: Source_Load.cc 43861 2008-01-24 11:39:28Z lslezak $
Author: Ladislav Slezák
Summary: Functions for initializing the package manager
Namespace: Pkg
@@ -296,8 +296,8 @@
{
PkgProgress pkgprogress(_callbackHandler);
- // display the progress only when 'enable' is true
- if (enable->value())
+ // display the progress only when sources will be loaded
+ if (enable->value() && repos.size() == 0)
{
std::liststd::string stages;
stages.push_back(_("Load Sources"));
@@ -320,8 +320,7 @@
}
/****************************************************************************************
- * @builtin SourceStartManager
- *
+ * Helper function
* @short Start the source manager - restore the sources and load the resolvables
* @description
* Calls SourceRestore(), if argument enable is true SourceLoad() is called.
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.16.11/src/Source_Resolvables.cc new/yast2-pkg-bindings-2.16.12/src/Source_Resolvables.cc
--- old/yast2-pkg-bindings-2.16.11/src/Source_Resolvables.cc 2008-01-03 16:05:59.000000000 +0100
+++ new/yast2-pkg-bindings-2.16.12/src/Source_Resolvables.cc 2008-01-24 12:39:28.000000000 +0100
@@ -19,7 +19,7 @@
*/
/*
- File: $Id: Source_Resolvables.cc 43261 2008-01-03 15:05:57Z lslezak $
+ File: $Id: Source_Resolvables.cc 43861 2008-01-24 11:39:28Z lslezak $
Author: Ladislav Slezák
Summary: Functions for adding/removing resolvables in the pool
Namespace: Pkg
@@ -31,8 +31,6 @@
#include
#include "log.h"
-#include
-
/*
Textdomain "pkg-bindings"
*/
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.16.11/src/Target_Load.cc new/yast2-pkg-bindings-2.16.12/src/Target_Load.cc
--- old/yast2-pkg-bindings-2.16.11/src/Target_Load.cc 2008-01-03 16:05:59.000000000 +0100
+++ new/yast2-pkg-bindings-2.16.12/src/Target_Load.cc 2008-01-24 13:27:58.000000000 +0100
@@ -19,7 +19,7 @@
*/
/*
- File: $Id: Target_Load.cc 43261 2008-01-03 15:05:57Z lslezak $
+ File: $Id: Target_Load.cc 43865 2008-01-24 12:27:57Z lslezak $
Author: Ladislav Slezák
Summary: Functions for initializing the package manager (target system)
Namespace: Pkg
@@ -50,7 +50,15 @@
YCPValue
PkgFunctions::TargetInit (const YCPString& root, const YCPBoolean & /*unused_and_broken*/)
{
- std::string r = root->value();
+ const std::string r(root->value());
+
+ // display the progress if the target is changed or if the resolvables haven't been loaded
+ // otherwise there will be a quick flashing progress with no real action
+ if (_target_root == r && _target_loaded)
+ {
+ y2milestone("Target %s is already initialized", r.c_str());
+ return YCPBoolean(true);
+ }
std::liststd::string stages;
stages.push_back(_("Initialize the Target System"));
@@ -64,6 +72,7 @@
zypp_ptr()->initializeTarget(r);
pkgprogress.NextStage();
zypp_ptr()->addResolvables( zypp_ptr()->target()->resolvables(), true );
+ _target_loaded = true;
}
catch (zypp::Exception & excpt)
{
@@ -72,7 +81,7 @@
return YCPError(excpt.msg().c_str(), YCPBoolean(false));
}
- _target_root = zypp::Pathname(root->value());
+ _target_root = zypp::Pathname(r);
pkgprogress.Done();
@@ -116,6 +125,12 @@
YCPValue
PkgFunctions::TargetLoad ()
{
+ if (_target_loaded)
+ {
+ y2milestone("The target system is already loaded");
+ return YCPBoolean(true);
+ }
+
std::liststd::string stages;
stages.push_back(_("Read Installed Packages"));
@@ -126,6 +141,7 @@
try
{
zypp_ptr()->addResolvables( zypp_ptr()->target()->resolvables(), true );
+ _target_loaded = true;
}
catch (zypp::Exception & excpt)
{
@@ -160,6 +176,10 @@
return YCPBoolean(false);
}
+ // reset the target
+ _target_root = zypp::Pathname();
+ _target_loaded = false;
+
return YCPBoolean(true);
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.16.11/VERSION new/yast2-pkg-bindings-2.16.12/VERSION
--- old/yast2-pkg-bindings-2.16.11/VERSION 2008-01-17 13:01:58.000000000 +0100
+++ new/yast2-pkg-bindings-2.16.12/VERSION 2008-01-24 11:14:02.000000000 +0100
@@ -1 +1 @@
-2.16.11
+2.16.12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org