Hello community,
here is the log from the commit of package yast2-pkg-bindings
checked in at Fri Jun 2 02:15:17 CEST 2006.
--------
--- yast2-pkg-bindings/yast2-pkg-bindings.changes 2006-05-25 17:42:02.000000000 +0200
+++ yast2-pkg-bindings/yast2-pkg-bindings.changes 2006-06-01 11:53:57.000000000 +0200
@@ -1,0 +2,7 @@
+Thu Jun 1 09:33:07 CEST 2006 - lslezak@suse.cz
+
+- get source ID by numericId() call (do not search in all available
+ sources) (#179410, #163609)
+- 2.13.81
+
+-------------------------------------------------------------------
Old:
----
yast2-pkg-bindings-2.13.80.tar.bz2
New:
----
yast2-pkg-bindings-2.13.81.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-pkg-bindings.spec ++++++
--- /var/tmp/diff_new_pack.2gRjxi/_old 2006-06-02 02:13:29.000000000 +0200
+++ /var/tmp/diff_new_pack.2gRjxi/_new 2006-06-02 02:13:29.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-pkg-bindings (Version 2.13.80)
+# spec file for package yast2-pkg-bindings (Version 2.13.81)
#
# 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-pkg-bindings
-Version: 2.13.80
+Version: 2.13.81
Release: 1
License: GPL
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-pkg-bindings-2.13.80.tar.bz2
+Source0: yast2-pkg-bindings-2.13.81.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 libzypp libzypp-devel perl-XML-Writer rpm-devel sgml-skel yast2-core-devel yast2-devtools
Summary: YaST2 Package Manager Access
@@ -36,7 +36,7 @@
Stanislav Visnovsky
%prep
-%setup -n yast2-pkg-bindings-2.13.80
+%setup -n yast2-pkg-bindings-2.13.81
%build
%{prefix}/bin/y2tool y2autoconf
@@ -67,6 +67,10 @@
%doc %{prefix}/share/doc/packages/yast2-pkg-bindings
%changelog -n yast2-pkg-bindings
+* Thu Jun 01 2006 - lslezak@suse.cz
+- get source ID by numericId() call (do not search in all available
+ sources) (#179410, #163609)
+- 2.13.81
* Thu May 25 2006 - mvidner@suse.cz
- Added SourceSaveAll which always saves and does not disable (#176013).
- 2.13.80
++++++ yast2-pkg-bindings-2.13.80.tar.bz2 -> yast2-pkg-bindings-2.13.81.tar.bz2 ++++++
++++ 14201 lines of diff (skipped)
++++ retrying with extended exclude list
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-pkg-bindings-2.13.80/VERSION new/yast2-pkg-bindings-2.13.81/VERSION
--- old/yast2-pkg-bindings-2.13.80/VERSION 2006-05-25 17:40:51.000000000 +0200
+++ new/yast2-pkg-bindings-2.13.81/VERSION 2006-06-01 09:44:34.000000000 +0200
@@ -1 +1 @@
-2.13.80
+2.13.81
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-pkg-bindings-2.13.80/configure.in new/yast2-pkg-bindings-2.13.81/configure.in
--- old/yast2-pkg-bindings-2.13.80/configure.in 2006-05-25 17:46:01.000000000 +0200
+++ new/yast2-pkg-bindings-2.13.81/configure.in 2006-06-01 11:49:24.000000000 +0200
@@ -1,9 +1,9 @@
dnl configure.in for yast2-pkg-bindings
dnl
-dnl -- This file is generated by y2autoconf 2.13.17 - DO NOT EDIT! --
+dnl -- This file is generated by y2autoconf 2.13.18 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-pkg-bindings, 2.13.80, http://bugs.opensuse.org/, yast2-pkg-bindings)
+AC_INIT(yast2-pkg-bindings, 2.13.81, 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.13.80"
+VERSION="2.13.81"
RPMNAME="yast2-pkg-bindings"
MAINTAINER="Michael Andres "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-pkg-bindings-2.13.80/src/Package.cc new/yast2-pkg-bindings-2.13.81/src/Package.cc
--- old/yast2-pkg-bindings-2.13.80/src/Package.cc 2006-05-25 16:45:20.000000000 +0200
+++ new/yast2-pkg-bindings-2.13.81/src/Package.cc 2006-06-01 10:21:07.000000000 +0200
@@ -977,41 +977,9 @@
data->add( YCPString("arch"), YCPString( pkg->arch().asString() ) );
data->add( YCPString("medianr"), YCPInteger( pkg->sourceMediaNr() ) );
- zypp::Source_Ref pkg_src = pkg->source();
- zypp::SourceManager::SourceId srcid = 0;
- bool found = false;
- std::listzypp::SourceManager::SourceId enabled_srcs = zypp::SourceManager::sourceManager()->enabledSources();
-
- // search source
- for( std::listzypp::SourceManager::SourceId::const_iterator src_it = enabled_srcs.begin()
- ; src_it != enabled_srcs.end()
- ; src_it++)
- {
- zypp::Source_Ref src;
-
- try
- {
- src = zypp::SourceManager::sourceManager()->findSource(*src_it);
- }
- catch (...)
- {
- y2error("cannot find source %lu", *src_it);
- continue;
- }
-
- if (src == pkg_src)
- {
- found = true;
- srcid = *src_it;
- break;
- }
- }
-
- if (found)
- {
- // src has been found
- data->add( YCPString("srcid"), YCPInteger( srcid ) );
- }
+ y2internal("getting the ID...");
+ y2internal("srcId: %ld", pkg->source().numericId() );
+ data->add( YCPString("srcid"), YCPInteger( pkg->source().numericId() ) );
std::string status("available");
if (item.status().isInstalled())
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-pkg-bindings-2.13.80/src/Resolvable.cc new/yast2-pkg-bindings-2.13.81/src/Resolvable.cc
--- old/yast2-pkg-bindings-2.13.80/src/Resolvable.cc 2006-05-15 13:02:39.000000000 +0200
+++ new/yast2-pkg-bindings-2.13.81/src/Resolvable.cc 2006-06-01 08:25:38.000000000 +0200
@@ -366,26 +366,7 @@
// source
zypp::Source_Ref res_src = (*it)->source();
- unsigned src_index;
- bool found = false;
-
- // find index of the source
- // TODO optimize it by using hash