Hello community,

here is the log from the commit of package yast2-pkg-bindings for 
openSUSE:Factory checked in at 2016-04-12 18:59:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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-04-08 09:39:14.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.yast2-pkg-bindings.new/yast2-pkg-bindings.changes   
    2016-04-12 18:59:39.000000000 +0200
@@ -1,0 +2,7 @@
+Wed Apr  6 15:51:40 CEST 2016 - [email protected]
+
+- Added new call: ServiceForceRefresh
+  (bnc#967828)
+- 3.1.34
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ yast2-pkg-bindings-devel-doc.spec ++++++
--- /var/tmp/diff_new_pack.foIegF/_old  2016-04-12 18:59:40.000000000 +0200
+++ /var/tmp/diff_new_pack.foIegF/_new  2016-04-12 18:59:40.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings-devel-doc
-Version:        3.1.33
+Version:        3.1.34
 Release:        0
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Source0:        yast2-pkg-bindings-%{version}.tar.bz2

++++++ yast2-pkg-bindings.spec ++++++
--- /var/tmp/diff_new_pack.foIegF/_old  2016-04-12 18:59:40.000000000 +0200
+++ /var/tmp/diff_new_pack.foIegF/_new  2016-04-12 18:59:40.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings
-Version:        3.1.33
+Version:        3.1.34
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ yast2-pkg-bindings-3.1.33.tar.bz2 -> yast2-pkg-bindings-3.1.34.tar.bz2 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-3.1.33/package/yast2-pkg-bindings-devel-doc.spec 
new/yast2-pkg-bindings-3.1.34/package/yast2-pkg-bindings-devel-doc.spec
--- old/yast2-pkg-bindings-3.1.33/package/yast2-pkg-bindings-devel-doc.spec     
2016-04-06 15:51:58.000000000 +0200
+++ new/yast2-pkg-bindings-3.1.34/package/yast2-pkg-bindings-devel-doc.spec     
2016-04-08 12:53:57.000000000 +0200
@@ -16,7 +16,7 @@
 #
 
 Name:           yast2-pkg-bindings-devel-doc
-Version:        3.1.33
+Version:        3.1.34
 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.33/package/yast2-pkg-bindings.changes 
new/yast2-pkg-bindings-3.1.34/package/yast2-pkg-bindings.changes
--- old/yast2-pkg-bindings-3.1.33/package/yast2-pkg-bindings.changes    
2016-04-06 15:51:58.000000000 +0200
+++ new/yast2-pkg-bindings-3.1.34/package/yast2-pkg-bindings.changes    
2016-04-08 12:53:57.000000000 +0200
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Wed Apr  6 15:51:40 CEST 2016 - [email protected]
+
+- Added new call: ServiceForceRefresh
+  (bnc#967828)
+- 3.1.34
+
+-------------------------------------------------------------------
 Tue Mar 29 12:32:18 UTC 2016 - [email protected]
 
 - Add a Pkg::ProvidePackage to retrieve a package using
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-3.1.33/package/yast2-pkg-bindings.spec 
new/yast2-pkg-bindings-3.1.34/package/yast2-pkg-bindings.spec
--- old/yast2-pkg-bindings-3.1.33/package/yast2-pkg-bindings.spec       
2016-04-06 15:51:58.000000000 +0200
+++ new/yast2-pkg-bindings-3.1.34/package/yast2-pkg-bindings.spec       
2016-04-08 12:53:57.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings
-Version:        3.1.33
+Version:        3.1.34
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-3.1.33/src/PkgFunctions.h 
new/yast2-pkg-bindings-3.1.34/src/PkgFunctions.h
--- old/yast2-pkg-bindings-3.1.33/src/PkgFunctions.h    2016-04-06 
15:51:58.000000000 +0200
+++ new/yast2-pkg-bindings-3.1.34/src/PkgFunctions.h    2016-04-08 
12:53:57.000000000 +0200
@@ -130,6 +130,7 @@
       int last_reported_mediumnr;
 
       YCPValue SourceRefreshHelper(const YCPInteger &id, bool forced = false);
+      YCPValue ServiceRefreshHelper(const YCPString &alias, bool forced = 
false);
 
       // helper for updating repository manager after changing the target root
       // return true if the target root has been changed
@@ -794,6 +795,8 @@
        YCPValue ServiceSet(const YCPString&, const YCPMap&);
        /* TYPEINFO: boolean(string)*/
        YCPValue ServiceRefresh(const YCPString&);
+       /* TYPEINFO: boolean(string)*/
+       YCPValue ServiceForceRefresh(const YCPString&);
        /* TYPEINFO: string(string)*/
        YCPValue ServiceURL(const YCPString &alias);
        /* TYPEINFO: string(string)*/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-3.1.33/src/Service.cc 
new/yast2-pkg-bindings-3.1.34/src/Service.cc
--- old/yast2-pkg-bindings-3.1.33/src/Service.cc        2016-04-04 
13:50:30.000000000 +0200
+++ new/yast2-pkg-bindings-3.1.34/src/Service.cc        2016-04-08 
12:53:57.000000000 +0200
@@ -359,12 +359,14 @@
 }
 
 /**
-   @builtin ServiceRefresh
-   @short Refresh the service, the service must already be saved on the system!
+   @builtin ServiceRefreshHelper
+   @short Helper call for refreshing services
    @param alias alias of the service to refresh
+   @param force force refresh even if TTL is not reached
+
    @return boolean false if failed
 */
-YCPValue PkgFunctions::ServiceRefresh(const YCPString &alias)
+YCPValue PkgFunctions::ServiceRefreshHelper(const YCPString &alias, bool force)
 {
     try
     {
@@ -378,7 +380,7 @@
 
        zypp::RepoManager* repomanager = CreateRepoManager();
 
-       if (!service_manager.RefreshService(alias_str, *repomanager))
+       if (!service_manager.RefreshService(alias_str, *repomanager, force))
        {
            return YCPBoolean(false);
        }
@@ -449,6 +451,28 @@
 }
 
 /**
+   @builtin ServiceRefresh
+   @short Refresh the service, the service must already be saved on the system!
+   @param alias alias of the service to refresh
+   @return boolean false if failed
+*/
+YCPValue PkgFunctions::ServiceRefresh(const YCPString &alias)
+{
+   return ServiceRefreshHelper(alias, false);
+}
+
+/**
+   @builtin ServiceForceRefresh
+   @short Service forced refresh, the service must already be saved on the 
system!
+   @param alias alias of the service to refresh
+   @return boolean false if failed
+*/
+YCPValue PkgFunctions::ServiceForceRefresh(const YCPString &alias)
+{
+   return ServiceRefreshHelper(alias, true);
+}
+
+/**
    @builtin ServiceProbe
    @short Probe service type at a URL
    @param url URL of the service
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-3.1.33/src/ServiceManager.cc 
new/yast2-pkg-bindings-3.1.34/src/ServiceManager.cc
--- old/yast2-pkg-bindings-3.1.33/src/ServiceManager.cc 2016-04-04 
13:50:30.000000000 +0200
+++ new/yast2-pkg-bindings-3.1.34/src/ServiceManager.cc 2016-04-08 
12:53:57.000000000 +0200
@@ -107,7 +107,7 @@
     return true;
 }
 
-bool ServiceManager::RefreshService(const std::string &alias, 
zypp::RepoManager &repomgr)
+bool ServiceManager::RefreshService(const std::string &alias, 
zypp::RepoManager &repomgr, bool force)
 {
     PkgServices::iterator serv_it = _known_services.find(alias);
 
@@ -117,7 +117,14 @@
        return false;
     }
 
-    repomgr.refreshService(serv_it->second);
+    if (force)
+    {
+        repomgr.refreshService(serv_it->second, 
zypp::RepoManager::RefreshService_forceRefresh);
+    }
+    else
+    {
+        repomgr.refreshService(serv_it->second);
+    }
 
     // load the service from disk
     PkgService new_service(repomgr.getService(alias), alias);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-3.1.33/src/ServiceManager.h 
new/yast2-pkg-bindings-3.1.34/src/ServiceManager.h
--- old/yast2-pkg-bindings-3.1.33/src/ServiceManager.h  2016-04-04 
13:50:30.000000000 +0200
+++ new/yast2-pkg-bindings-3.1.34/src/ServiceManager.h  2016-04-08 
12:53:57.000000000 +0200
@@ -54,7 +54,7 @@
 
        bool SetService(const std::string &old_alias, const zypp::ServiceInfo 
&srv);
 
-       bool RefreshService(const std::string &alias, zypp::RepoManager 
&repomgr);
+       bool RefreshService(const std::string &alias, zypp::RepoManager 
&repomgr, bool force = false);
 
        std::string Probe(const zypp::Url &url, const zypp::RepoManager 
&repomgr) const;
 


Reply via email to