Hello community,

here is the log from the commit of package SUSEConnect for openSUSE:Factory 
checked in at 2018-06-22 13:14:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/SUSEConnect (Old)
 and      /work/SRC/openSUSE:Factory/.SUSEConnect.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "SUSEConnect"

Fri Jun 22 13:14:28 2018 rev:13 rq:616295 version:0.3.11

Changes:
--------
--- /work/SRC/openSUSE:Factory/SUSEConnect/SUSEConnect.changes  2018-06-08 
23:10:52.973993112 +0200
+++ /work/SRC/openSUSE:Factory/.SUSEConnect.new/SUSEConnect.changes     
2018-06-22 13:14:50.912227389 +0200
@@ -5,0 +6,2 @@
+- Enhance error message generation
+- Add not supported operation exception to PackageSearch API

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

Other differences:
------------------
++++++ SUSEConnect.spec ++++++
--- /var/tmp/diff_new_pack.3w25AN/_old  2018-06-22 13:14:51.724197280 +0200
+++ /var/tmp/diff_new_pack.3w25AN/_new  2018-06-22 13:14:51.728197132 +0200
@@ -67,7 +67,7 @@
 Source3:        %{name}.example
 
 Summary:        Utility to register a system with the SUSE Customer Center
-License:        LGPL-2.1-only
+License:        LGPL-2.1
 Group:          System/Management
 Requires(post): update-alternatives
 

++++++ suse-connect-0.3.11.gem ++++++
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/suse/connect/api.rb new/lib/suse/connect/api.rb
--- old/lib/suse/connect/api.rb 2018-05-17 12:43:27.000000000 +0200
+++ new/lib/suse/connect/api.rb 2018-06-12 12:54:45.000000000 +0200
@@ -244,6 +244,11 @@
         query = CGI.escape(query)
 
         @connection.get(api + "?product_id=#{triplet}&query=#{query}")
+      rescue ApiError => e
+        raise e if e.code != 404
+        raise UnsupportedOperation, 'Package search is not supported by the '\
+                                    'registration proxy: Alternatively, use '\
+                                    'the web version at 
https://scc.suse.com/packages/'
       end
     end
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/suse/connect/connection.rb 
new/lib/suse/connect/connection.rb
--- old/lib/suse/connect/connection.rb  2018-05-17 12:43:27.000000000 +0200
+++ new/lib/suse/connect/connection.rb  2018-06-12 12:54:45.000000000 +0200
@@ -67,6 +67,7 @@
           code: response.code.to_i,
           headers: response.to_hash,
           body: body,
+          http_message: response.message,
           success: response.is_a?(Net::HTTPSuccess)
         )
       rescue Zlib::Error
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/suse/connect/errors.rb 
new/lib/suse/connect/errors.rb
--- old/lib/suse/connect/errors.rb      2018-05-17 12:43:27.000000000 +0200
+++ new/lib/suse/connect/errors.rb      2018-06-12 12:54:45.000000000 +0200
@@ -12,6 +12,7 @@
     class NetworkError < StandardError; end
     class SystemNotRegisteredError < StandardError; end
     class BaseProductDeactivationError < StandardError; end
+    class UnsupportedOperation < StandardError; end
 
     # Basic error for API interactions. Collects HTTP response (which includes
     # status code and response body) for future showing to user via {Cli}
@@ -32,6 +33,9 @@
       end
 
       def message
+        return @response.http_message unless @response.body
+        return @response.body['error'] unless @response.body.key? 
'localized_error'
+
         @response.body['localized_error']
       end
     end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2018-05-17 12:43:27.000000000 +0200
+++ new/metadata        2018-06-12 12:54:45.000000000 +0200
@@ -8,7 +8,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2018-05-17 00:00:00.000000000 Z
+date: 2018-06-12 00:00:00.000000000 Z
 dependencies: []
 description: This package provides a command line tool and rubygem library for 
connecting
   a client system to the SUSE Customer Center. It will connect the system to 
your
@@ -86,7 +86,7 @@
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.7.3
+rubygems_version: 2.7.6
 signing_key: 
 specification_version: 4
 summary: SUSE Connect utility to register a system with the SUSE Customer 
Center


Reply via email to