Hello community,
here is the log from the commit of package yast2-pkg-bindings for
openSUSE:Factory checked in at 2015-04-05 02:03:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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
2015-03-09 10:02:54.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.yast2-pkg-bindings.new/yast2-pkg-bindings.changes
2015-04-05 02:03:30.000000000 +0200
@@ -1,0 +2,9 @@
+Tue Mar 31 11:39:34 UTC 2015 - [email protected]
+
+- Pkg::ResolvableProperties(): "version" value contains a full
+ edition (in form "[epoch:]version[-release]"), additionaly return
+ also "version_epoch", "version_version" and "version_release"
+ with the parts of the edition (needed for FATE#318505)
+- 3.1.23
+
+-------------------------------------------------------------------
Old:
----
yast2-pkg-bindings-3.1.22.tar.bz2
New:
----
yast2-pkg-bindings-3.1.23.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-pkg-bindings-devel-doc.spec ++++++
--- /var/tmp/diff_new_pack.ak43nB/_old 2015-04-05 02:03:31.000000000 +0200
+++ /var/tmp/diff_new_pack.ak43nB/_new 2015-04-05 02:03:31.000000000 +0200
@@ -17,7 +17,7 @@
Name: yast2-pkg-bindings-devel-doc
-Version: 3.1.22
+Version: 3.1.23
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: yast2-pkg-bindings-%{version}.tar.bz2
++++++ yast2-pkg-bindings.spec ++++++
--- /var/tmp/diff_new_pack.ak43nB/_old 2015-04-05 02:03:31.000000000 +0200
+++ /var/tmp/diff_new_pack.ak43nB/_new 2015-04-05 02:03:31.000000000 +0200
@@ -17,7 +17,7 @@
Name: yast2-pkg-bindings
-Version: 3.1.22
+Version: 3.1.23
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
++++++ yast2-pkg-bindings-3.1.22.tar.bz2 -> yast2-pkg-bindings-3.1.23.tar.bz2
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-pkg-bindings-3.1.22/package/yast2-pkg-bindings-devel-doc.spec
new/yast2-pkg-bindings-3.1.23/package/yast2-pkg-bindings-devel-doc.spec
--- old/yast2-pkg-bindings-3.1.22/package/yast2-pkg-bindings-devel-doc.spec
2015-03-04 16:50:11.000000000 +0100
+++ new/yast2-pkg-bindings-3.1.23/package/yast2-pkg-bindings-devel-doc.spec
2015-03-31 14:15:09.000000000 +0200
@@ -16,7 +16,7 @@
#
Name: yast2-pkg-bindings-devel-doc
-Version: 3.1.22
+Version: 3.1.23
Release: 0
License: GPL-2.0
Group: Documentation/HTML
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-pkg-bindings-3.1.22/package/yast2-pkg-bindings.changes
new/yast2-pkg-bindings-3.1.23/package/yast2-pkg-bindings.changes
--- old/yast2-pkg-bindings-3.1.22/package/yast2-pkg-bindings.changes
2015-03-04 16:50:11.000000000 +0100
+++ new/yast2-pkg-bindings-3.1.23/package/yast2-pkg-bindings.changes
2015-03-31 14:15:09.000000000 +0200
@@ -1,4 +1,13 @@
-------------------------------------------------------------------
+Tue Mar 31 11:39:34 UTC 2015 - [email protected]
+
+- Pkg::ResolvableProperties(): "version" value contains a full
+ edition (in form "[epoch:]version[-release]"), additionaly return
+ also "version_epoch", "version_version" and "version_release"
+ with the parts of the edition (needed for FATE#318505)
+- 3.1.23
+
+-------------------------------------------------------------------
Wed Mar 4 15:33:21 UTC 2015 - [email protected]
- removed obsolete patch callbacks
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-pkg-bindings-3.1.22/package/yast2-pkg-bindings.spec
new/yast2-pkg-bindings-3.1.23/package/yast2-pkg-bindings.spec
--- old/yast2-pkg-bindings-3.1.22/package/yast2-pkg-bindings.spec
2015-03-04 16:50:11.000000000 +0100
+++ new/yast2-pkg-bindings-3.1.23/package/yast2-pkg-bindings.spec
2015-03-31 14:15:09.000000000 +0200
@@ -17,7 +17,7 @@
Name: yast2-pkg-bindings
-Version: 3.1.22
+Version: 3.1.23
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-pkg-bindings-3.1.22/src/Resolvable_Properties.cc
new/yast2-pkg-bindings-3.1.23/src/Resolvable_Properties.cc
--- old/yast2-pkg-bindings-3.1.22/src/Resolvable_Properties.cc 2015-03-04
16:50:11.000000000 +0100
+++ new/yast2-pkg-bindings-3.1.23/src/Resolvable_Properties.cc 2015-03-31
14:15:10.000000000 +0200
@@ -60,7 +60,9 @@
@param kind_r kind of resolvable, can be `product, `patch, `package,
`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, "locked":boolean,
"on_system_by_user":boolean ] maps
+ @return list<map<string,any>> list of $[ "name":string, "version":string,
+ "version_epoch":integer (nil if not defined), "version_version":string,
"version_release":string,
+ "arch":string, "source":integer, "status":symbol, "locked":boolean,
"on_system_by_user":boolean ] maps
status is `installed, `removed, `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
@@ -69,9 +71,12 @@
on_system_by_user shows if the resolvable has been installed by
user(USER,APPL_HIGH,APPL_LOW) or due solved dependencies. This information
comes from
the solver which cannot distinguis between the state USER,APPL_HIGH and
APPL_LOW.
+ "version" value contains edition with all components in form
"[epoch:]version[-release]",
+ "version_epoch", "version_version" and "version_release" values contain
the parts of the edition.
+
Additionally to keys returned for all resolvables, there also some
resolvable-specific ones:
-
+
`product keys:
+ "category"
+ "display_name"
@@ -127,7 +132,7 @@
+ "code"
+ "packages"
+ "requested"
-
+
If dependencies are requested, this keys are additionally used:
+ "provides"
+ "prerequires"
@@ -184,7 +189,17 @@
YCPMap info;
info->add(YCPString("name"), YCPString(item->name()));
+ // complete edition: [epoch:]version[-release]
info->add(YCPString("version"), YCPString(item->edition().asString()));
+
+ // parts of the edition
+ if (item->edition().epoch() == zypp::Edition::noepoch)
+ info->add(YCPString("version_epoch"), YCPVoid());
+ else
+ info->add(YCPString("version_epoch"),
YCPInteger(item->edition().epoch()));
+ info->add(YCPString("version_version"),
YCPString(item->edition().version()));
+ info->add(YCPString("version_release"),
YCPString(item->edition().release()));
+
info->add(YCPString("arch"), YCPString(item->arch().asString()));
info->add(YCPString("description"), YCPString(item->description()));