Hello community,

here is the log from the commit of package yast2-pkg-bindings for 
openSUSE:Factory checked in at 2014-02-21 13:48:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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-01-11 11:12:41.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.yast2-pkg-bindings.new/yast2-pkg-bindings.changes   
    2014-02-21 13:48:20.000000000 +0100
@@ -1,0 +2,13 @@
+Fri Feb 14 14:42:13 UTC 2014 - lsle...@suse.cz
+
+- Pkg::ServiceRefresh() - download metadata for added repositories
+- 3.1.5
+
+-------------------------------------------------------------------
+Thu Feb 13 16:35:53 UTC 2014 - lsle...@suse.cz
+
+- Pkg::ServiceRefresh() - add, refresh and load also the new added
+  repositories from the service
+- 3.1.4
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ yast2-pkg-bindings-devel-doc.spec ++++++
--- /var/tmp/diff_new_pack.ZDvQ0z/_old  2014-02-21 13:48:21.000000000 +0100
+++ /var/tmp/diff_new_pack.ZDvQ0z/_new  2014-02-21 13:48:21.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings-devel-doc
-Version:        3.1.3
+Version:        3.1.5
 Release:        0
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Source0:        yast2-pkg-bindings-%{version}.tar.bz2

++++++ yast2-pkg-bindings.spec ++++++
--- /var/tmp/diff_new_pack.ZDvQ0z/_old  2014-02-21 13:48:21.000000000 +0100
+++ /var/tmp/diff_new_pack.ZDvQ0z/_new  2014-02-21 13:48:21.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings
-Version:        3.1.3
+Version:        3.1.5
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ yast2-pkg-bindings-3.1.3.tar.bz2 -> yast2-pkg-bindings-3.1.5.tar.bz2 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-3.1.3/package/yast2-pkg-bindings-devel-doc.spec 
new/yast2-pkg-bindings-3.1.5/package/yast2-pkg-bindings-devel-doc.spec
--- old/yast2-pkg-bindings-3.1.3/package/yast2-pkg-bindings-devel-doc.spec      
2014-01-10 11:11:00.000000000 +0100
+++ new/yast2-pkg-bindings-3.1.5/package/yast2-pkg-bindings-devel-doc.spec      
2014-02-19 13:23:17.000000000 +0100
@@ -16,7 +16,7 @@
 #
 
 Name:           yast2-pkg-bindings-devel-doc
-Version:        3.1.3
+Version:        3.1.5
 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.3/package/yast2-pkg-bindings.changes 
new/yast2-pkg-bindings-3.1.5/package/yast2-pkg-bindings.changes
--- old/yast2-pkg-bindings-3.1.3/package/yast2-pkg-bindings.changes     
2014-01-10 11:11:00.000000000 +0100
+++ new/yast2-pkg-bindings-3.1.5/package/yast2-pkg-bindings.changes     
2014-02-19 13:23:17.000000000 +0100
@@ -1,4 +1,17 @@
 -------------------------------------------------------------------
+Fri Feb 14 14:42:13 UTC 2014 - lsle...@suse.cz
+
+- Pkg::ServiceRefresh() - download metadata for added repositories
+- 3.1.5
+
+-------------------------------------------------------------------
+Thu Feb 13 16:35:53 UTC 2014 - lsle...@suse.cz
+
+- Pkg::ServiceRefresh() - add, refresh and load also the new added
+  repositories from the service
+- 3.1.4
+
+-------------------------------------------------------------------
 Fri Jan 10 09:02:41 UTC 2014 - lsle...@suse.cz
 
 - zypp::filesystem::TmpDir::defaultLocation() already contains
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-3.1.3/package/yast2-pkg-bindings.spec 
new/yast2-pkg-bindings-3.1.5/package/yast2-pkg-bindings.spec
--- old/yast2-pkg-bindings-3.1.3/package/yast2-pkg-bindings.spec        
2014-01-10 11:11:00.000000000 +0100
+++ new/yast2-pkg-bindings-3.1.5/package/yast2-pkg-bindings.spec        
2014-02-19 13:23:17.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings
-Version:        3.1.3
+Version:        3.1.5
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-3.1.3/src/Service.cc 
new/yast2-pkg-bindings-3.1.5/src/Service.cc
--- old/yast2-pkg-bindings-3.1.3/src/Service.cc 2014-01-10 11:11:00.000000000 
+0100
+++ new/yast2-pkg-bindings-3.1.5/src/Service.cc 2014-02-19 13:23:17.000000000 
+0100
@@ -26,6 +26,7 @@
 */
 
 #include "PkgFunctions.h"
+#include "PkgProgress.h"
 #include "log.h"
 
 #include <ycp/YCPValue.h>
@@ -34,6 +35,7 @@
 #include <ycp/YCPList.h>
 #include <ycp/YCPBoolean.h>
 #include <ycp/YCPVoid.h>
+#include <zypp/RepoInfo.h>
 
 
 /**
@@ -372,9 +374,11 @@
            return YCPBoolean(false);
        }
 
+        const std::string alias_str(alias->value());
+
        zypp::RepoManager* repomanager = CreateRepoManager();
 
-       if (!service_manager.RefreshService(alias->value(), *repomanager))
+       if (!service_manager.RefreshService(alias_str, *repomanager))
        {
            return YCPBoolean(false);
        }
@@ -403,6 +407,36 @@
            }
        }
 
+        y2milestone("Checking for added repositories...");
+        // check whether there are new added repositories and load them
+        std::list<zypp::RepoInfo> reps = repomanager->knownRepositories();
+        for (std::list<zypp::RepoInfo>::iterator it = reps.begin();
+            it != reps.end(); ++it)
+        {
+          y2debug("Checking repo '%s' from service '%s'", it->alias().c_str(), 
it->service().c_str());
+          if (it->service() == alias_str && !logFindAlias(it->alias()))
+            continue;
+
+          y2milestone("Service added a new repository: %s", 
it->alias().c_str());
+          YRepo_Ptr new_repo = new YRepo(*it);
+          repos.push_back(new_repo);
+
+          if (it->enabled())
+          {
+            y2milestone("Refreshing service: %s", it->alias().c_str());
+            // refresh the last added repository
+            SourceRefreshNow(repos.size() - 1);
+
+            // load resolvables
+            PkgProgress pkgprogress(_callbackHandler);
+            zypp::ProgressData progress(100);
+            progress.sendTo(pkgprogress.Receiver());
+            zypp::CombinedProgressData subprogrcv_ref(progress, 20);
+
+            LoadResolvablesFrom(new_repo, subprogrcv_ref);
+          }
+        }
+
        return YCPBoolean(true);
     }
     catch (const zypp::Exception& excpt)

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

Reply via email to