Hello community,
here is the log from the commit of package yast2-pkg-bindings for
openSUSE:Factory checked in at 2016-10-18 13:27:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-pkg-bindings (Old)
and /work/SRC/openSUSE:Factory/.yast2-pkg-bindings.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-pkg-bindings"
Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-pkg-bindings/yast2-pkg-bindings.changes
2016-10-10 16:17:39.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.yast2-pkg-bindings.new/yast2-pkg-bindings.changes
2016-10-18 13:27:42.000000000 +0200
@@ -1,0 +2,7 @@
+Wed Oct 12 16:24:12 UTC 2016 - [email protected]
+
+- Added Pkg.SourceSetPriority() to allow changing the priority
+ also for the already loaded packages (bsc#498266)
+- 3.2.1
+
+-------------------------------------------------------------------
Old:
----
yast2-pkg-bindings-3.2.0.tar.bz2
New:
----
yast2-pkg-bindings-3.2.1.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-pkg-bindings-devel-doc.spec ++++++
--- /var/tmp/diff_new_pack.YmceDz/_old 2016-10-18 13:27:44.000000000 +0200
+++ /var/tmp/diff_new_pack.YmceDz/_new 2016-10-18 13:27:44.000000000 +0200
@@ -17,7 +17,7 @@
Name: yast2-pkg-bindings-devel-doc
-Version: 3.2.0
+Version: 3.2.1
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: yast2-pkg-bindings-%{version}.tar.bz2
++++++ yast2-pkg-bindings.spec ++++++
--- /var/tmp/diff_new_pack.YmceDz/_old 2016-10-18 13:27:44.000000000 +0200
+++ /var/tmp/diff_new_pack.YmceDz/_new 2016-10-18 13:27:44.000000000 +0200
@@ -17,7 +17,7 @@
Name: yast2-pkg-bindings
-Version: 3.2.0
+Version: 3.2.1
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
++++++ yast2-pkg-bindings-3.2.0.tar.bz2 -> yast2-pkg-bindings-3.2.1.tar.bz2
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-pkg-bindings-3.2.0/package/yast2-pkg-bindings-devel-doc.spec
new/yast2-pkg-bindings-3.2.1/package/yast2-pkg-bindings-devel-doc.spec
--- old/yast2-pkg-bindings-3.2.0/package/yast2-pkg-bindings-devel-doc.spec
2016-10-07 10:48:45.000000000 +0200
+++ new/yast2-pkg-bindings-3.2.1/package/yast2-pkg-bindings-devel-doc.spec
2016-10-17 10:44:33.000000000 +0200
@@ -16,7 +16,7 @@
#
Name: yast2-pkg-bindings-devel-doc
-Version: 3.2.0
+Version: 3.2.1
Release: 0
License: GPL-2.0
Group: Documentation/HTML
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-pkg-bindings-3.2.0/package/yast2-pkg-bindings.changes
new/yast2-pkg-bindings-3.2.1/package/yast2-pkg-bindings.changes
--- old/yast2-pkg-bindings-3.2.0/package/yast2-pkg-bindings.changes
2016-10-07 10:48:45.000000000 +0200
+++ new/yast2-pkg-bindings-3.2.1/package/yast2-pkg-bindings.changes
2016-10-17 10:44:33.000000000 +0200
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Wed Oct 12 16:24:12 UTC 2016 - [email protected]
+
+- Added Pkg.SourceSetPriority() to allow changing the priority
+ also for the already loaded packages (bsc#498266)
+- 3.2.1
+
+-------------------------------------------------------------------
Fri Oct 7 07:32:19 UTC 2016 - [email protected]
- Added Pkg.UrlSchemeIs*() methods for classifying the URL scheme
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-pkg-bindings-3.2.0/package/yast2-pkg-bindings.spec
new/yast2-pkg-bindings-3.2.1/package/yast2-pkg-bindings.spec
--- old/yast2-pkg-bindings-3.2.0/package/yast2-pkg-bindings.spec
2016-10-07 10:48:45.000000000 +0200
+++ new/yast2-pkg-bindings-3.2.1/package/yast2-pkg-bindings.spec
2016-10-17 10:44:33.000000000 +0200
@@ -17,7 +17,7 @@
Name: yast2-pkg-bindings
-Version: 3.2.0
+Version: 3.2.1
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-pkg-bindings-3.2.0/src/PkgFunctions.h
new/yast2-pkg-bindings-3.2.1/src/PkgFunctions.h
--- old/yast2-pkg-bindings-3.2.0/src/PkgFunctions.h 2016-10-07
10:48:46.000000000 +0200
+++ new/yast2-pkg-bindings-3.2.1/src/PkgFunctions.h 2016-10-17
10:44:33.000000000 +0200
@@ -539,6 +539,8 @@
YCPValue SourceCacheCopyTo (const YCPString&);
/* TYPEINFO: boolean(integer,boolean)*/
YCPValue SourceSetEnabled (const YCPInteger&, const YCPBoolean&);
+ /* TYPEINFO: boolean(integer,integer) */
+ YCPValue SourceSetPriority(const YCPInteger& id, const YCPInteger&
priority);
/* TYPEINFO: boolean(integer,boolean)*/
YCPValue SourceSetAutorefresh (const YCPInteger&, const YCPBoolean&);
/* TYPEINFO: boolean(integer)*/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-pkg-bindings-3.2.0/src/Source_Set.cc
new/yast2-pkg-bindings-3.2.1/src/Source_Set.cc
--- old/yast2-pkg-bindings-3.2.0/src/Source_Set.cc 2016-10-07
10:48:46.000000000 +0200
+++ new/yast2-pkg-bindings-3.2.1/src/Source_Set.cc 2016-10-17
10:44:33.000000000 +0200
@@ -103,6 +103,40 @@
}
/****************************************************************************************
+ * @builtin SourceSetPriority
+ *
+ * @short Set the repository priority
+ * @description
+ * It updates also the priority of the loaded packages in the pool.
+ * @param integer id the repository
+ * @param integer priority the new priority (usually 1-200, the default is 99,
+ * lower number means higher priority!)
+ * @return boolean true on success
+ **/
+YCPValue
+PkgFunctions::SourceSetPriority(const YCPInteger& id, const YCPInteger&
priority)
+{
+ YRepo_Ptr repo = logFindRepository(id->value());
+ if (!repo) return YCPBoolean(false);
+
+ repo->repoInfo().setPriority(priority->value());
+
+ // apply the priority also on the loaded packages in the pool (bsc#498266),
+ zypp::Repository
r(zypp::sat::Pool::instance().reposFind(repo->repoInfo().alias()));
+
+ // it might not be loaded in the pool
+ if (r != zypp::Repository::noRepository)
+ {
+ // keep the other attributes unchanged to avoid side effects
+ zypp::RepoInfo ri(r.info());
+ ri.setPriority(priority->value());
+ r.setInfo(ri);
+ }
+
+ return YCPBoolean(true);
+}
+
+/****************************************************************************************
* @builtin SourceSetAutorefresh
*
* @short Set whether this source should automaticaly refresh it's