Mailinglist Archive: opensuse-commit (1139 mails)

< Previous Next >
commit yast2-pkg-bindings
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Mon, 08 Jan 2007 15:41:23 +0100
  • Message-id: <20070108144123.EDACC678178@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package yast2-pkg-bindings
checked in at Mon Jan 8 15:41:23 CET 2007.

--------
--- yast2-pkg-bindings/yast2-pkg-bindings.changes 2006-12-11 11:18:01.000000000 +0100
+++ /mounts/work_src_done/STABLE/yast2-pkg-bindings/yast2-pkg-bindings.changes 2007-01-08 15:02:22.000000000 +0100
@@ -1,0 +2,8 @@
+Mon Jan 8 14:20:30 CET 2007 - lslezak@xxxxxxx
+
+- Pkg::GetPackages supports `taboo and `locked options,
+ Pkg::ResolvableProperties returns "locked" value
+ (required for #232506)
+- 2.15.2
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ yast2-pkg-bindings.spec ++++++
--- /var/tmp/diff_new_pack.jM9897/_old 2007-01-08 15:41:19.000000000 +0100
+++ /var/tmp/diff_new_pack.jM9897/_new 2007-01-08 15:41:19.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-pkg-bindings (Version 2.15.1)
+# spec file for package yast2-pkg-bindings (Version 2.15.2)
#
# 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.1
-Release: 13
+Version: 2.15.2
+Release: 2
License: GNU General Public License (GPL)
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-pkg-bindings-2.15.1.tar.bz2
+Source0: yast2-pkg-bindings-2.15.2.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 >= 2.4.0
@@ -40,7 +40,7 @@
Stanislav Visnovsky <visnov@xxxxxxx>

%prep
-%setup -n yast2-pkg-bindings-2.15.1
+%setup -n yast2-pkg-bindings-2.15.2

%build
%{prefix}/bin/y2tool y2autoconf
@@ -71,6 +71,11 @@
%doc %{prefix}/share/doc/packages/yast2-pkg-bindings

%changelog -n yast2-pkg-bindings
+* Mon Jan 08 2007 - lslezak@xxxxxxx
+- Pkg::GetPackages supports `taboo and `locked options,
+ Pkg::ResolvableProperties returns "locked" value
+ (required for #232506)
+- 2.15.2
* Mon Dec 11 2006 - lslezak@xxxxxxx
- Pkg:PkgMediaCount() - correctly report number of packages from
a YUM source (#220242)

++++++ yast2-pkg-bindings-2.15.1.tar.bz2 -> yast2-pkg-bindings-2.15.2.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.15.1/configure new/yast2-pkg-bindings-2.15.2/configure
--- old/yast2-pkg-bindings-2.15.1/configure 2006-12-08 09:53:27.000000000 +0100
+++ new/yast2-pkg-bindings-2.15.2/configure 2007-01-08 14:59:29.000000000 +0100
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.60 for yast2-pkg-bindings 2.15.0.
+# Generated by GNU Autoconf 2.60 for yast2-pkg-bindings 2.15.2.
#
# Report bugs to <http://bugs.opensuse.org/>.
#
@@ -713,8 +713,8 @@
# Identity of this package.
PACKAGE_NAME='yast2-pkg-bindings'
PACKAGE_TARNAME='yast2-pkg-bindings'
-PACKAGE_VERSION='2.15.0'
-PACKAGE_STRING='yast2-pkg-bindings 2.15.0'
+PACKAGE_VERSION='2.15.2'
+PACKAGE_STRING='yast2-pkg-bindings 2.15.2'
PACKAGE_BUGREPORT='http://bugs.opensuse.org/'

ac_unique_file="RPMNAME"
@@ -1429,7 +1429,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.0 to adapt to many kinds of systems.
+\`configure' configures yast2-pkg-bindings 2.15.2 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

@@ -1500,7 +1500,7 @@

if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-pkg-bindings 2.15.0:";;
+ short | recursive ) echo "Configuration of yast2-pkg-bindings 2.15.2:";;
esac
cat <<\_ACEOF

@@ -1608,7 +1608,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-yast2-pkg-bindings configure 2.15.0
+yast2-pkg-bindings configure 2.15.2
generated by GNU Autoconf 2.60

Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1622,7 +1622,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.0, which was
+It was created by yast2-pkg-bindings $as_me 2.15.2, which was
generated by GNU Autoconf 2.60. Invocation command line was

$ $0 $@
@@ -2423,7 +2423,7 @@

# Define the identity of the package.
PACKAGE='yast2-pkg-bindings'
- VERSION='2.15.0'
+ VERSION='2.15.2'


cat >>confdefs.h <<_ACEOF
@@ -2650,7 +2650,7 @@



-VERSION="2.15.0"
+VERSION="2.15.2"
RPMNAME="yast2-pkg-bindings"
MAINTAINER="Ladislav Slezák <lslezak@xxxxxxx>"

@@ -21612,7 +21612,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.0, which was
+This file was extended by yast2-pkg-bindings $as_me 2.15.2, which was
generated by GNU Autoconf 2.60. Invocation command line was

CONFIG_FILES = $CONFIG_FILES
@@ -21665,7 +21665,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-pkg-bindings config.status 2.15.0
+yast2-pkg-bindings config.status 2.15.2
configured by $0, generated by GNU Autoconf 2.60,
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.1/configure.in new/yast2-pkg-bindings-2.15.2/configure.in
--- old/yast2-pkg-bindings-2.15.1/configure.in 2006-12-08 09:53:16.000000000 +0100
+++ new/yast2-pkg-bindings-2.15.2/configure.in 2007-01-08 14:59:17.000000000 +0100
@@ -3,7 +3,7 @@
dnl -- This file is generated by y2autoconf 2.14.0 - DO NOT EDIT! --
dnl (edit configure.in.in instead)

-AC_INIT(yast2-pkg-bindings, 2.15.0, http://bugs.opensuse.org/, yast2-pkg-bindings)
+AC_INIT(yast2-pkg-bindings, 2.15.2, 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.0"
+VERSION="2.15.2"
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.1/src/Package.cc new/yast2-pkg-bindings-2.15.2/src/Package.cc
--- old/yast2-pkg-bindings-2.15.1/src/Package.cc 2006-12-08 08:58:54.000000000 +0100
+++ new/yast2-pkg-bindings-2.15.2/src/Package.cc 2007-01-08 14:36:03.000000000 +0100
@@ -1481,7 +1481,8 @@

@param symbol 'which' defines which packages are returned: `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
+ available packages (from the installation source), `removed all packages selected for removal,
+ `locked all locked packages (locked, installed), `taboo all taboo packages (locked, not installed)
@param boolean names_only If true, return package names only
@return list<string>

@@ -1526,6 +1527,20 @@
{
pkg2list(packages, it, names_only);
}
+ else if (which == "locked")
+ {
+ if (it->status().isLocked() && it->status().isInstalled())
+ {
+ pkg2list(packages, it, names_only);
+ }
+ }
+ else if (which == "taboo")
+ {
+ if (it->status().isLocked() && !it->status().isInstalled())
+ {
+ pkg2list(packages, it, names_only);
+ }
+ }
else
{
return YCPError ("Wrong parameter for Pkg::GetPackages");
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.15.1/src/Resolvable.cc new/yast2-pkg-bindings-2.15.2/src/Resolvable.cc
--- old/yast2-pkg-bindings-2.15.1/src/Resolvable.cc 2006-10-30 13:17:18.000000000 +0100
+++ new/yast2-pkg-bindings-2.15.2/src/Resolvable.cc 2007-01-08 14:43:51.000000000 +0100
@@ -301,8 +301,10 @@
@param kind_r kind of resolvable, can be `product, `patch, `package, `selection, `pattern or `language
@param version version of the resolvable, if empty all versions are returned

- @return list<map<string,any>> list of $[ "name":string, "version":string, "arch":string, "source":integer, "status":symbol ] maps
+ @return list<map<string,any>> list of $[ "name":string, "version":string, "arch":string, "source":integer, "status":symbol, "locked":boolean ] maps
status is `installed, `selected or `available, source is source ID or -1 if the resolvable is installed in the target
+ if status is `available and locked is true then the object is set to taboo,
+ if status is `installed and locked is true then the object locked
*/

YCPValue
@@ -399,6 +401,9 @@

info->add(YCPString("status"), YCPSymbol(stat));

+ // is the resolvable locked? (Locked or Taboo in the UI)
+ info->add(YCPString("locked"), YCPBoolean(it->status().isLocked()));
+
// source
zypp::Source_Ref res_src = (*it)->source();
info->add(YCPString("source"), YCPInteger(res_src.numericId()));
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-pkg-bindings-2.15.1/VERSION new/yast2-pkg-bindings-2.15.2/VERSION
--- old/yast2-pkg-bindings-2.15.1/VERSION 2006-12-11 11:16:02.000000000 +0100
+++ new/yast2-pkg-bindings-2.15.2/VERSION 2007-01-08 14:44:12.000000000 +0100
@@ -1 +1 @@
-2.15.1
+2.15.2


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



Remember to have fun...

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

< Previous Next >
This Thread