Hello community,

here is the log from the commit of package yast2-pkg-bindings for 
openSUSE:Factory checked in at 2014-09-28 19:56:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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    
2014-09-24 13:09:01.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.yast2-pkg-bindings.new/yast2-pkg-bindings.changes   
    2014-09-28 19:56:52.000000000 +0200
@@ -1,0 +2,12 @@
+Wed Sep 24 18:16:22 CEST 2014 - sch...@suse.de
+
+- Added onsystem_by_user flag in Pkg.PkgProperties and
+  Pkg.ResolvableProperties
+- Fixed PkgPropertiesAll. It returns only package information about
+  the package which is defined in the parameters. In former versions
+  the given package name has not been regarded and the properties
+  of ALL packages have been returned, which has been wrong.
+  (needed for bnc#897404)
+- 3.1.20
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ yast2-pkg-bindings-devel-doc.spec ++++++
--- /var/tmp/diff_new_pack.5UkHm1/_old  2014-09-28 19:56:53.000000000 +0200
+++ /var/tmp/diff_new_pack.5UkHm1/_new  2014-09-28 19:56:53.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings-devel-doc
-Version:        3.1.19
+Version:        3.1.20
 Release:        0
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Source0:        yast2-pkg-bindings-%{version}.tar.bz2

++++++ yast2-pkg-bindings.spec ++++++
--- /var/tmp/diff_new_pack.5UkHm1/_old  2014-09-28 19:56:53.000000000 +0200
+++ /var/tmp/diff_new_pack.5UkHm1/_new  2014-09-28 19:56:53.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings
-Version:        3.1.19
+Version:        3.1.20
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ yast2-pkg-bindings-3.1.19.tar.bz2 -> yast2-pkg-bindings-3.1.20.tar.bz2 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-3.1.19/MAINTAINER 
new/yast2-pkg-bindings-3.1.20/MAINTAINER
--- old/yast2-pkg-bindings-3.1.19/MAINTAINER    2014-09-22 12:07:16.000000000 
+0200
+++ new/yast2-pkg-bindings-3.1.20/MAINTAINER    2014-09-25 17:20:14.000000000 
+0200
@@ -1 +1 @@
-Ladislav Slezák <lsle...@suse.cz>
+Deprecated file. Use `osc maintainer yast2-pkg-bindings` instead.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-3.1.19/package/yast2-pkg-bindings-devel-doc.spec 
new/yast2-pkg-bindings-3.1.20/package/yast2-pkg-bindings-devel-doc.spec
--- old/yast2-pkg-bindings-3.1.19/package/yast2-pkg-bindings-devel-doc.spec     
2014-09-22 12:07:17.000000000 +0200
+++ new/yast2-pkg-bindings-3.1.20/package/yast2-pkg-bindings-devel-doc.spec     
2014-09-25 17:20:14.000000000 +0200
@@ -16,7 +16,7 @@
 #
 
 Name:           yast2-pkg-bindings-devel-doc
-Version:        3.1.19
+Version:        3.1.20
 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.19/package/yast2-pkg-bindings.changes 
new/yast2-pkg-bindings-3.1.20/package/yast2-pkg-bindings.changes
--- old/yast2-pkg-bindings-3.1.19/package/yast2-pkg-bindings.changes    
2014-09-22 12:07:17.000000000 +0200
+++ new/yast2-pkg-bindings-3.1.20/package/yast2-pkg-bindings.changes    
2014-09-25 17:20:14.000000000 +0200
@@ -1,4 +1,16 @@
 -------------------------------------------------------------------
+Wed Sep 24 18:16:22 CEST 2014 - sch...@suse.de
+
+- Added onsystem_by_user flag in Pkg.PkgProperties and
+  Pkg.ResolvableProperties
+- Fixed PkgPropertiesAll. It returns only package information about
+  the package which is defined in the parameters. In former versions
+  the given package name has not been regarded and the properties
+  of ALL packages have been returned, which has been wrong.
+  (needed for bnc#897404)
+- 3.1.20
+
+-------------------------------------------------------------------
 Tue Sep 16 19:36:50 UTC 2014 - lsle...@suse.cz
 
 - SetTargetDU(): added new options ("growonly" and "filesystem")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-3.1.19/package/yast2-pkg-bindings.spec 
new/yast2-pkg-bindings-3.1.20/package/yast2-pkg-bindings.spec
--- old/yast2-pkg-bindings-3.1.19/package/yast2-pkg-bindings.spec       
2014-09-22 12:07:17.000000000 +0200
+++ new/yast2-pkg-bindings-3.1.20/package/yast2-pkg-bindings.spec       
2014-09-25 17:20:14.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings
-Version:        3.1.19
+Version:        3.1.20
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-3.1.19/src/Package.cc 
new/yast2-pkg-bindings-3.1.20/src/Package.cc
--- old/yast2-pkg-bindings-3.1.19/src/Package.cc        2014-09-22 
12:07:17.000000000 +0200
+++ new/yast2-pkg-bindings-3.1.20/src/Package.cc        2014-09-25 
17:20:14.000000000 +0200
@@ -897,6 +897,8 @@
 
     data->add( YCPString("status"), YCPSymbol(status));
 
+    data->add(YCPString("on_system_by_user"), 
YCPBoolean(item.satSolvable().onSystemByUser()));
+
     data->add( YCPString("location"), YCPString( 
pkg->location().filename().basename() ) );
     data->add( YCPString("path"), YCPString( 
pkg->location().filename().asString() ) );
 
@@ -908,18 +910,20 @@
  * @builtin PkgProperties
  * @short Return information about a package
  * @description
- * Return Data about package location, source and which
- *  media contains the package
+ * Return Data about package location, source, which
+ *  media contains the package and who has installed.
  *
  * <code>
- * $["srcid"    : YCPInteger,
- *   "location" : YCPString
- *   "medianr"  : YCPInteger
- *   "arch"     : YCPString
- *   ]
+ * $["medianr"          :integer
+ *   "arch"             :string
+ *   "srcid"            :integer
+ *   "status"           :symbol
+ *   "on_system_by_user":boolean
+ *   "location"         :string
+ *   "path"             :string
+ * ]
  * </code>
  * @param package name
- * @return map
  * @usage Pkg::PkgProperties (string package) -> map
  */
 
@@ -955,35 +959,21 @@
 
     if (!pkgname.empty())
     {
-       try
-       {
-           // access to the Pool of Selectables
-           zypp::ResPoolProxy 
selectablePool(zypp::ResPool::instance().proxy());
-
-           for_(it, selectablePool.byKindBegin<zypp::Package>(),
-               selectablePool.byKindEnd<zypp::Package>())
+        zypp::ui::Selectable::Ptr s = zypp::ui::Selectable::get(pkgname);
+        if (s)
+        {
+           // iterate over installed packages
+           for_(inst_it, s->installedBegin(), s->installedEnd())
            {
-               zypp::ui::Selectable::Ptr s = (*it);
+               data->add(PkgProp(*inst_it));
+           }
 
-               if (s)
-               {
-                   // iterate over installed packages
-                   for_(inst_it, s->installedBegin(), s->installedEnd())
-                   {
-                       data->add(PkgProp(*inst_it));
-                   }
-
-                   // iterate over available packages
-                   for_(avail_it, s->availableBegin(), s->availableEnd())
-                   {
-                       data->add(PkgProp(*avail_it));
-                   }
-               }
+           // iterate over available packages
+           for_(avail_it, s->availableBegin(), s->availableEnd())
+           {
+               data->add(PkgProp(*avail_it));
            }
        }
-       catch (...)
-       {
-       }
     }
 
     return data;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-3.1.19/src/Resolvable_Properties.cc 
new/yast2-pkg-bindings-3.1.20/src/Resolvable_Properties.cc
--- old/yast2-pkg-bindings-3.1.19/src/Resolvable_Properties.cc  2014-09-22 
12:07:17.000000000 +0200
+++ new/yast2-pkg-bindings-3.1.20/src/Resolvable_Properties.cc  2014-09-25 
17:20:14.000000000 +0200
@@ -60,12 +60,14 @@
    @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 ] maps
+   @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
    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
    if status is `selected or `removed there is extra key "transact_by" : 
symbol, where symbol is `user (the highest level),
        `app_high (selected by Yast), `app_low and `solver (the lowest level)
+   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.
 
      Additionally to keys returned for all resolvables, there also some
      resolvable-specific ones:
@@ -219,6 +221,8 @@
 
     info->add(YCPString("transact_by"), 
YCPSymbol(TransactToString(status.getTransactByValue())));
 
+    info->add(YCPString("on_system_by_user"), 
YCPBoolean(item.satSolvable().onSystemByUser()));
+
     info->add(YCPString("status"), YCPSymbol(stat));
 
     // is the resolvable locked? (Locked or Taboo in the UI)

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to