Hello community,

here is the log from the commit of package libzypp-bindings for 
openSUSE:Factory checked in at 2013-11-07 12:53:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libzypp-bindings (Old)
 and      /work/SRC/openSUSE:Factory/.libzypp-bindings.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libzypp-bindings"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libzypp-bindings/libzypp-bindings.changes        
2013-10-02 17:56:55.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.libzypp-bindings.new/libzypp-bindings.changes   
2013-11-07 12:53:31.000000000 +0100
@@ -1,0 +2,12 @@
+Wed Nov  6 15:58:55 CET 2013 - [email protected]
+
+- Wrap Changelog class.
+- 0.5.17
+
+-------------------------------------------------------------------
+Tue Nov  5 16:53:35 CET 2013 - [email protected]
+
+- Fix no attribute access via PoolItem::resolvable
+- 0.5.16
+
+-------------------------------------------------------------------

Old:
----
  libzypp-bindings-0.5.15.tar.bz2

New:
----
  libzypp-bindings-0.5.17.tar.bz2

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

Other differences:
------------------
++++++ libzypp-bindings.spec ++++++
--- /var/tmp/diff_new_pack.CpbVcw/_old  2013-11-07 12:53:40.000000000 +0100
+++ /var/tmp/diff_new_pack.CpbVcw/_new  2013-11-07 12:53:40.000000000 +0100
@@ -18,7 +18,7 @@
 
 
 Name:           libzypp-bindings
-Version:        0.5.15
+Version:        0.5.17
 Release:        0
 Summary:        Bindings for libzypp
 License:        GPL-2.0+

++++++ libzypp-bindings-0.5.15.tar.bz2 -> libzypp-bindings-0.5.17.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libzypp-bindings-0.5.15/VERSION.cmake 
new/libzypp-bindings-0.5.17/VERSION.cmake
--- old/libzypp-bindings-0.5.15/VERSION.cmake   2013-09-30 12:56:32.000000000 
+0200
+++ new/libzypp-bindings-0.5.17/VERSION.cmake   2013-11-06 16:01:43.000000000 
+0100
@@ -1,3 +1,3 @@
 SET(VERSION_MAJOR "0")
 SET(VERSION_MINOR "5")
-SET(VERSION_PATCH "15")
+SET(VERSION_PATCH "17")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libzypp-bindings-0.5.15/examples/ruby/parse1.rb 
new/libzypp-bindings-0.5.17/examples/ruby/parse1.rb
--- old/libzypp-bindings-0.5.15/examples/ruby/parse1.rb 2013-03-19 
14:01:39.000000000 +0100
+++ new/libzypp-bindings-0.5.17/examples/ruby/parse1.rb 2013-11-06 
16:01:43.000000000 +0100
@@ -3,51 +3,56 @@
 require 'zypp'
 include Zypp
 
-tmp_cache_path = TmpDir.new()
-tmp_raw_cache_path = TmpDir.new()
-tmp_known_repos_path = TmpDir.new()
-
-opts = RepoManagerOptions.new()
-opts.repoCachePath = tmp_cache_path.path()
-opts.repoRawCachePath = tmp_raw_cache_path.path()
-opts.knownReposPath = tmp_known_repos_path.path()
+# Load installed packages
+z = ZYppFactory::instance.getZYpp
+z.initializeTarget( Pathname.new("/") )
+z.target.load;
 
+tmp_dir = TmpDir.new()
+opts = RepoManagerOptions.new(tmp_dir.path())
 repo_manager = RepoManager.new(opts)
 
 repo_info = RepoInfo.new()
-
-repo_info.set_alias("factorytest")
-repo_info.set_name("Test Repo for Factory.")
-repo_info.set_enabled(true)
-repo_info.set_autorefresh(false)
-# repo_info.add_base_url("ftp://dist.suse.de/install/stable-x86/";)
-# 
repo_info.add_base_url("http://software.opensuse.org/download/home:/Arvin42/openSUSE_Factory/";)
-repo_info.add_base_url("file:///suse/aschnell/tmp")
-
-repo_manager.add_repository(repo_info)
-
-z = ZYppFactory::instance.get_zypp
-pool = z.pool()
-
-repos = repo_manager.known_repositories()
+repo_info.setAlias("factorytest")
+repo_info.setName("Test Repo for Factory.")
+repo_info.setEnabled(true)
+repo_info.setAutorefresh(false)
+url = Url.new("http://download.opensuse.org/factory-tested/repo/oss/";)
+repo_info.addBaseUrl(url)
+#repo_manager.addRepository(repo_info)
+
+KeyRing.setDefaultAccept( KeyRing::ACCEPT_UNKNOWNKEY |
+        KeyRing::ACCEPT_VERIFICATION_FAILED | KeyRing::ACCEPT_UNSIGNED_FILE |
+        KeyRing::TRUST_KEY_TEMPORARILY)
+repos = repo_manager.knownRepositories()
 repos.each do | repo |
-    repo_manager.refresh_metadata(repo)
-    repo_manager.build_cache(repo)
-    rep = repo_manager.create_from_cache(repo)
-    store = rep.resolvables()
-    z.add_resolvables(store)
+    repo_manager.refreshMetadata(repo)
+    repo_manager.buildCache(repo)
+    repo_manager.loadFromCache(repo)
 end
 
 # puts pool.class
+pool = z.pool()
 
 pool.each do | p |
 
-    # puts p.class
+    #puts p.class
     r = p.resolvable
-    # puts r.class
-    puts "#{r.kind} #{r.name} #{r.edition.to_s} #{r.arch.to_s}"
+    #puts r.class
+    puts "#{r.kind} #{r.name} #{r.edition} #{r.arch}"
+
+    if isKindPackage(p)
+      changes = asKindPackage(p).changelog
+      puts changes.class
+      puts changes.size
+      changes.each do | c |
+       puts c.date
+       puts c.author
+       puts c.text
+      end
+    end
     puts "  Summary: #{r.summary}"
-    puts "  Size: #{r.size}"
+    puts "  DownloadSize: #{r.downloadSize}"
     puts "  Vendor: #{r.vendor}"
     puts "  Buildtime: #{r.buildtime}"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libzypp-bindings-0.5.15/package/libzypp-bindings.changes 
new/libzypp-bindings-0.5.17/package/libzypp-bindings.changes
--- old/libzypp-bindings-0.5.15/package/libzypp-bindings.changes        
2013-10-02 14:41:19.000000000 +0200
+++ new/libzypp-bindings-0.5.17/package/libzypp-bindings.changes        
2013-11-06 16:01:43.000000000 +0100
@@ -1,4 +1,16 @@
 -------------------------------------------------------------------
+Wed Nov  6 15:58:55 CET 2013 - [email protected]
+
+- Wrap Changelog class.
+- 0.5.17
+
+-------------------------------------------------------------------
+Tue Nov  5 16:53:35 CET 2013 - [email protected]
+
+- Fix no attribute access via PoolItem::resolvable
+- 0.5.16
+
+-------------------------------------------------------------------
 Mon Sep 30 11:10:31 UTC 2013 - [email protected]
 
 - Add legacy GetResolvablesToInsDel class (removed from libzypp
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libzypp-bindings-0.5.15/swig/Changelog.i 
new/libzypp-bindings-0.5.17/swig/Changelog.i
--- old/libzypp-bindings-0.5.15/swig/Changelog.i        1970-01-01 
01:00:00.000000000 +0100
+++ new/libzypp-bindings-0.5.17/swig/Changelog.i        2013-11-06 
16:12:53.000000000 +0100
@@ -0,0 +1,14 @@
+%include <zypp/Changelog.h>
+
+// some list ctor requires a ChangelogEntry default ctor
+// but we don't have one.
+%ignore std::list<zypp::ChangelogEntry>::list;
+#ifdef SWIGPYTHON
+%ignore std::list<zypp::ChangelogEntry>::resize;
+#endif
+
+namespace zypp
+{
+  typedef ::std::list<ChangelogEntry> Changelog;
+  %template(Changelog) ::std::list<ChangelogEntry>;
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libzypp-bindings-0.5.15/swig/ResTraits.i 
new/libzypp-bindings-0.5.17/swig/ResTraits.i
--- old/libzypp-bindings-0.5.15/swig/ResTraits.i        2013-03-19 
14:01:39.000000000 +0100
+++ new/libzypp-bindings-0.5.17/swig/ResTraits.i        2013-11-06 
16:01:43.000000000 +0100
@@ -22,6 +22,15 @@
 
 }
 
+namespace zypp::ResObject::TraitsType
+{
+  typedef ::zypp::intrusive_ptr<const zypp::ResObject> constPtrType;
+}
+namespace zypp::Resolvable::TraitsType
+{
+  typedef ::zypp::intrusive_ptr<const zypp::Resolvable> constPtrType;
+}
+
 %template(ResTraitsResolvable) zypp::ResTraits<zypp::Resolvable>;
 %template(ResTraitsResObject)  zypp::ResTraits<zypp::ResObject>;
 
@@ -40,9 +49,11 @@
   %template(X##_Ptr)             ::zypp::intrusive_ptr<X>;
 
   bool isKind##X( const zypp::Resolvable::constPtr & p );
+  bool isKind##X( const zypp::ResObject::constPtr & p );
   bool isKind##X( const zypp::PoolItem & p );
 
   X##_constPtr asKind##X( const zypp::Resolvable::constPtr & p );
+  X##_constPtr asKind##X( const zypp::ResObject::constPtr & p );
   X##_constPtr asKind##X( const zypp::PoolItem & p );
 }
 
@@ -52,10 +63,14 @@
   {
     inline bool isKind##X( const zypp::Resolvable::constPtr & p )
     { return isKind<X>( p ); }
+    inline bool isKind##X( const zypp::ResObject::constPtr & p )
+    { return isKind<X>( p ); }
     inline bool isKind##X( const zypp::PoolItem & p )
     { return isKind<X>( p.resolvable() ); }
     inline X::constPtr asKind##X( const zypp::Resolvable::constPtr & p )
     { return asKind<X>( p ); }
+    inline X::constPtr asKind##X( const zypp::ResObject::constPtr & p )
+    { return asKind<X>( p ); }
     inline X::constPtr asKind##X( const zypp::PoolItem & p )
     { return asKind<X>( p.resolvable() ); }
   }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libzypp-bindings-0.5.15/swig/zypp.i 
new/libzypp-bindings-0.5.17/swig/zypp.i
--- old/libzypp-bindings-0.5.15/swig/zypp.i     2013-05-10 12:46:29.000000000 
+0200
+++ new/libzypp-bindings-0.5.17/swig/zypp.i     2013-11-06 16:01:43.000000000 
+0100
@@ -224,6 +224,7 @@
 %include "Kind.i"
 %include "CheckSum.i"
 %include "Date.i"
+%include "Changelog.i"
 %include "Dep.i"
 %include "Capability.i"
 %include "Capabilities.i"

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to