Mailinglist Archive: opensuse-commit (2092 mails)

< Previous Next >
commit yast2-pkg-bindings
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Fri, 31 Aug 2007 16:06:45 +0200
  • Message-id: <20070831140645.F2400678331@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package yast2-pkg-bindings
checked in at Fri Aug 31 16:06:45 CEST 2007.

--------
--- yast2-pkg-bindings/yast2-pkg-bindings.changes       2007-08-30 20:12:39.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-pkg-bindings/yast2-pkg-bindings.changes  2007-08-31 11:38:06.384369000 +0200
@@ -1,0 +2,6 @@
+Fri Aug 31 11:28:08 CEST 2007 - lslezak@xxxxxxx
+
+- fixed inverted result of PkgAvailable() and PkgInstalled()
+- 2.15.48
+
+-------------------------------------------------------------------

Old:
----
  yast2-pkg-bindings-2.15.47.tar.bz2

New:
----
  yast2-pkg-bindings-2.15.48.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2-pkg-bindings-devel-doc.spec ++++++
--- /var/tmp/diff_new_pack.lZ2417/_old  2007-08-31 16:06:15.000000000 +0200
+++ /var/tmp/diff_new_pack.lZ2417/_new  2007-08-31 16:06:15.000000000 +0200
@@ -1,5 +1,5 @@
 #
-# spec file for package yast2-pkg-bindings-devel-doc (Version 2.15.47)
+# spec file for package yast2-pkg-bindings-devel-doc (Version 2.15.48)
 #
 # Copyright (c) 2007 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.15.47
+Version:        2.15.48
 Release:        1
 License:        GPL v2 or later
 Group:          Documentation/HTML
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-Source0:        yast2-pkg-bindings-2.15.47.tar.bz2
+Source0:        yast2-pkg-bindings-2.15.48.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 <lslezak@xxxxxxxxxx>
 
 %prep
-%setup -n yast2-pkg-bindings-2.15.47
+%setup -n yast2-pkg-bindings-2.15.48
 # build only documentation, ignore all other directories
 echo "doc" > SUBDIRS
 

++++++ yast2-pkg-bindings.spec ++++++
--- /var/tmp/diff_new_pack.lZ2417/_old  2007-08-31 16:06:15.000000000 +0200
+++ /var/tmp/diff_new_pack.lZ2417/_new  2007-08-31 16:06:15.000000000 +0200
@@ -1,5 +1,5 @@
 #
-# spec file for package yast2-pkg-bindings (Version 2.15.47)
+# spec file for package yast2-pkg-bindings (Version 2.15.48)
 #
 # Copyright (c) 2007 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.15.47
+Version:        2.15.48
 Release:        1
 License:        GPL v2 or later
 Group:          System/YaST
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-Source0:        yast2-pkg-bindings-2.15.47.tar.bz2
+Source0:        yast2-pkg-bindings-2.15.48.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 >= 3.21.0
@@ -40,7 +40,7 @@
     Stanislav Visnovsky <visnov@xxxxxxx>
 
 %prep
-%setup -n yast2-pkg-bindings-2.15.47
+%setup -n yast2-pkg-bindings-2.15.48
 # build only the library, ignore documentation (it is in devel-doc package)
 echo "src" > SUBDIRS
 
@@ -73,6 +73,9 @@
 %doc %{prefix}/share/doc/packages/yast2-pkg-bindings
 
 %changelog
+* Fri Aug 31 2007 - lslezak@xxxxxxx
+- fixed inverted result of PkgAvailable() and PkgInstalled()
+- 2.15.48
 * Thu Aug 30 2007 - lslezak@xxxxxxx
 - don't log debug messages from zypp if debug logging is turned off
   (#306458)

++++++ yast2-pkg-bindings-2.15.47.tar.bz2 -> yast2-pkg-bindings-2.15.48.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.15.47/configure new/yast2-pkg-bindings-2.15.48/configure
--- old/yast2-pkg-bindings-2.15.47/configure    2007-08-30 20:11:51.000000000 +0200
+++ new/yast2-pkg-bindings-2.15.48/configure    2007-08-31 11:37:11.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-pkg-bindings 2.15.47.
+# Generated by GNU Autoconf 2.61 for yast2-pkg-bindings 2.15.48.
 #
 # 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.15.47'
-PACKAGE_STRING='yast2-pkg-bindings 2.15.47'
+PACKAGE_VERSION='2.15.48'
+PACKAGE_STRING='yast2-pkg-bindings 2.15.48'
 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.15.47 to adapt to many kinds of systems.
+\`configure' configures yast2-pkg-bindings 2.15.48 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.15.47:";;
+     short | recursive ) echo "Configuration of yast2-pkg-bindings 2.15.48:";;
    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.15.47
+yast2-pkg-bindings configure 2.15.48
 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.15.47, which was
+It was created by yast2-pkg-bindings $as_me 2.15.48, 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.15.47'
+ VERSION='2.15.48'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -2689,7 +2689,7 @@
 
 
 
-VERSION="2.15.47"
+VERSION="2.15.48"
 RPMNAME="yast2-pkg-bindings"
 MAINTAINER="Ladislav Slez√°k <lslezak@xxxxxxx>"
 
@@ -21198,7 +21198,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.15.47, which was
+This file was extended by yast2-pkg-bindings $as_me 2.15.48, which was
 generated by GNU Autoconf 2.61.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -21251,7 +21251,7 @@
 _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF
 ac_cs_version="\\
-yast2-pkg-bindings config.status 2.15.47
+yast2-pkg-bindings config.status 2.15.48
 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.15.47/configure.in new/yast2-pkg-bindings-2.15.48/configure.in
--- old/yast2-pkg-bindings-2.15.47/configure.in 2007-08-30 20:11:38.000000000 +0200
+++ new/yast2-pkg-bindings-2.15.48/configure.in 2007-08-31 11:36:58.000000000 +0200
@@ -3,7 +3,7 @@
 dnl -- This file is generated by y2autoconf 2.15.7 - DO NOT EDIT! --
 dnl    (edit configure.in.in instead)
 
-AC_INIT(yast2-pkg-bindings, 2.15.47, http://bugs.opensuse.org/, yast2-pkg-bindings)
+AC_INIT(yast2-pkg-bindings, 2.15.48, http://bugs.opensuse.org/, yast2-pkg-bindings)
 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.15.47"
+VERSION="2.15.48"
 RPMNAME="yast2-pkg-bindings"
 MAINTAINER="Ladislav Slez√°k <lslezak@xxxxxxx>"
 
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.15.47/src/Package.cc new/yast2-pkg-bindings-2.15.48/src/Package.cc
--- old/yast2-pkg-bindings-2.15.47/src/Package.cc       2007-08-30 15:14:44.000000000 +0200
+++ new/yast2-pkg-bindings-2.15.48/src/Package.cc       2007-08-31 10:25:26.000000000 +0200
@@ -530,9 +530,9 @@
 PkgModuleFunctions::searchPackage(const YCPString &package, bool installed)
 {
     bool found = false;
-    std::string pkg = package->value();
+    std::string pkgname = package->value();
 
-    if (pkg.empty())
+    if (pkgname.empty())
     {
        y2warning("Pkg::%s: Package name is empty", installed ? "PkgInstalled" : "PkgAvailable");
        return YCPBoolean(false);
@@ -540,8 +540,8 @@
 
     try
     {
-       for (zypp::ResPool::byName_iterator it = zypp_ptr()->pool().byNameBegin(pkg);
-           it != zypp_ptr()->pool().byNameEnd(pkg);
+       for (zypp::ResPool::byName_iterator it = zypp_ptr()->pool().byNameBegin(pkgname);
+           it != zypp_ptr()->pool().byNameEnd(pkgname);
            ++it)
        {
            zypp::Package::constPtr pkg = zypp::asKind<zypp::Package>( it->resolvable() );
@@ -549,7 +549,8 @@
            if (pkg != NULL)
            {
                long long sid = logFindAlias(pkg->repository().info().alias());
-               if ((installed && sid >= 0LL) || (!installed && sid < 0LL))
+               y2debug("Package '%s' repo: %lld", pkgname.c_str(), sid);
+               if ((installed && sid < 0LL) || (!installed && sid >= 0LL))
                {
                    found = true;
                    break;
@@ -561,7 +562,7 @@
     {
     }
 
-    y2milestone("Package '%s' %s: %s", pkg.c_str(), installed ? "installed" : "available", found ? "true" : "false");
+    y2milestone("Package '%s' %s: %s", pkgname.c_str(), installed ? "installed" : "available", found ? "true" : "false");
 
     return YCPBoolean(found);
 }
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.15.47/VERSION new/yast2-pkg-bindings-2.15.48/VERSION
--- old/yast2-pkg-bindings-2.15.47/VERSION      2007-08-30 20:07:54.000000000 +0200
+++ new/yast2-pkg-bindings-2.15.48/VERSION      2007-08-31 11:28:43.000000000 +0200
@@ -1 +1 @@
-2.15.47
+2.15.48


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >