Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package yast2-pkg-bindings for 
openSUSE:Factory checked in at 2021-05-07 16:45:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-pkg-bindings (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-pkg-bindings.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-pkg-bindings"

Fri May  7 16:45:25 2021 rev:221 rq:890612 version:4.4.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-pkg-bindings/yast2-pkg-bindings.changes    
2021-04-23 17:50:31.922784519 +0200
+++ 
/work/SRC/openSUSE:Factory/.yast2-pkg-bindings.new.2988/yast2-pkg-bindings.changes
  2021-05-07 16:45:38.364308247 +0200
@@ -1,0 +2,9 @@
+Wed May  5 06:53:20 UTC 2021 - Ladislav Slez??k <lsle...@suse.cz>
+
+- Pkg.ProvidePackage() - download the latest package version from
+  the repository, this ensures that the installer is updated with
+  the latest packages from the installer updates repository
+  (bsc#1185240)
+- 4.4.2
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ yast2-pkg-bindings-devel-doc.spec ++++++
--- /var/tmp/diff_new_pack.qkXjfl/_old  2021-05-07 16:45:38.884306612 +0200
+++ /var/tmp/diff_new_pack.qkXjfl/_new  2021-05-07 16:45:38.888306600 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings-devel-doc
-Version:        4.4.1
+Version:        4.4.2
 Release:        0
 Summary:        YaST2 - Documentation for yast2-pkg-bindings package
 License:        GPL-2.0-only

yast2-pkg-bindings.spec: same change
++++++ yast2-pkg-bindings-4.4.1.tar.bz2 -> yast2-pkg-bindings-4.4.2.tar.bz2 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-4.4.1/package/yast2-pkg-bindings-devel-doc.spec 
new/yast2-pkg-bindings-4.4.2/package/yast2-pkg-bindings-devel-doc.spec
--- old/yast2-pkg-bindings-4.4.1/package/yast2-pkg-bindings-devel-doc.spec      
2021-04-21 09:10:51.000000000 +0200
+++ new/yast2-pkg-bindings-4.4.2/package/yast2-pkg-bindings-devel-doc.spec      
2021-05-05 09:51:49.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings-devel-doc
-Version:        4.4.1
+Version:        4.4.2
 Release:        0
 Summary:        YaST2 - Documentation for yast2-pkg-bindings package
 License:        GPL-2.0-only
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-4.4.1/package/yast2-pkg-bindings.changes 
new/yast2-pkg-bindings-4.4.2/package/yast2-pkg-bindings.changes
--- old/yast2-pkg-bindings-4.4.1/package/yast2-pkg-bindings.changes     
2021-04-21 09:10:51.000000000 +0200
+++ new/yast2-pkg-bindings-4.4.2/package/yast2-pkg-bindings.changes     
2021-05-05 09:51:49.000000000 +0200
@@ -1,4 +1,13 @@
 -------------------------------------------------------------------
+Wed May  5 06:53:20 UTC 2021 - Ladislav Slez??k <lsle...@suse.cz>
+
+- Pkg.ProvidePackage() - download the latest package version from
+  the repository, this ensures that the installer is updated with
+  the latest packages from the installer updates repository
+  (bsc#1185240)
+- 4.4.2
+
+-------------------------------------------------------------------
 Tue Apr 20 18:14:05 UTC 2021 - Dirk M??ller <dmuel...@suse.com>
 
 - stop packaging docdir, it only contained the license which
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-4.4.1/package/yast2-pkg-bindings.spec 
new/yast2-pkg-bindings-4.4.2/package/yast2-pkg-bindings.spec
--- old/yast2-pkg-bindings-4.4.1/package/yast2-pkg-bindings.spec        
2021-04-21 09:10:51.000000000 +0200
+++ new/yast2-pkg-bindings-4.4.2/package/yast2-pkg-bindings.spec        
2021-05-05 09:51:49.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings
-Version:        4.4.1
+Version:        4.4.2
 Release:        0
 Summary:        YaST2 - Package Manager Access
 License:        GPL-2.0-only
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-4.4.1/src/Package.cc 
new/yast2-pkg-bindings-4.4.2/src/Package.cc
--- old/yast2-pkg-bindings-4.4.1/src/Package.cc 2021-04-21 09:10:51.000000000 
+0200
+++ new/yast2-pkg-bindings-4.4.2/src/Package.cc 2021-05-05 09:51:49.000000000 
+0200
@@ -3157,17 +3157,25 @@
  * @return zypp::Package::constPtr
  */
 zypp::Package::constPtr PkgFunctions::packageFromRepo(const YCPInteger & 
repo_id, const YCPString & name) {
-  zypp::ResPool pool(zypp::getZYpp()->pool());
   YRepo_Ptr repo = logFindRepository(repo_id->value());
-  if (!repo) return NULL;
+  if (!repo || name.isEmpty()) return NULL;
 
-  /* maybe we should use std::find_if */
-  for_(it, pool.byIdentBegin<zypp::Package>(name->value()), 
pool.byIdentEnd<zypp::Package>(name->value())) {
-    if (repo->repoInfo().alias() == (*it)->repository().alias()) {
-      return zypp::asKind<zypp::Package>((*it).resolvable());
-    }
+  zypp::Repository 
repository(zypp::ResPool::instance().reposFind(repo->repoInfo().alias()));
+
+  if (repository == zypp::Repository::noRepository)
+  {
+    y2error("Repository %lld not found", repo_id->value());
+    return NULL;
+  }
+
+  zypp::ui::Selectable::Ptr s = zypp::ui::Selectable::get(name->value());
+  if (!s)
+  {
+    y2error("Package %s not found", name->value().c_str());
+    return NULL;
   }
-  return NULL;
+
+  return 
zypp::asKind<zypp::Package>(s->candidateObjFrom(repository).resolvable());
 }
 
 /**

Reply via email to