Hello community, here is the log from the commit of package SUSEConnect for openSUSE:Factory checked in at 2018-05-23 16:05:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/SUSEConnect (Old) and /work/SRC/openSUSE:Factory/.SUSEConnect.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "SUSEConnect" Wed May 23 16:05:13 2018 rev:11 rq:609136 version:0.3.11 Changes: -------- --- /work/SRC/openSUSE:Factory/SUSEConnect/SUSEConnect.changes 2018-04-26 13:31:19.674818022 +0200 +++ /work/SRC/openSUSE:Factory/.SUSEConnect.new/SUSEConnect.changes 2018-05-23 16:05:15.166441208 +0200 @@ -1,0 +2,12 @@ +Wed May 16 10:14:57 UTC 2018 - [email protected] + +- Update to 0.3.11 +- Add dependencies needed by the rmt-client-setup script. + +------------------------------------------------------------------- +Mon May 7 15:47:50 UTC 2018 - [email protected] + +- Prevent the automatic registration of recommended products that + are not mirrored by the registration proxy. + +------------------------------------------------------------------- @@ -6 +17,0 @@ - Old: ---- suse-connect-0.3.10.gem New: ---- suse-connect-0.3.11.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ SUSEConnect.spec ++++++ --- /var/tmp/diff_new_pack.DDdYWB/_old 2018-05-23 16:05:16.330398568 +0200 +++ /var/tmp/diff_new_pack.DDdYWB/_new 2018-05-23 16:05:16.342398128 +0200 @@ -16,7 +16,7 @@ # Name: SUSEConnect -Version: 0.3.10 +Version: 0.3.11 Release: 0 %define mod_name suse-connect %define mod_full_name %{mod_name}-%{version} @@ -25,6 +25,8 @@ ExcludeArch: %ix86 s390 Requires: coreutils, util-linux, net-tools, hwinfo, zypper, ca-certificates-mozilla +# Required by the rmt-client-setup script: +Requires: wget, gawk, openssl, grep, gpg2, sed Requires: zypper(auto-agree-with-product-licenses) %ifarch x86_64 aarch64 Requires: dmidecode ++++++ SUSEConnect.5 ++++++ --- /var/tmp/diff_new_pack.DDdYWB/_old 2018-05-23 16:05:16.418395344 +0200 +++ /var/tmp/diff_new_pack.DDdYWB/_new 2018-05-23 16:05:16.422395197 +0200 @@ -1,7 +1,7 @@ .\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "SUSECONNECT" "5" "April 2017" "" "SUSEConnect" +.TH "SUSECONNECT" "5" "March 2018" "" "SUSEConnect" . .SH "NAME" \fBSUSEConnect\fR \- SUSE Customer Center registration tool config file ++++++ SUSEConnect.8 ++++++ --- /var/tmp/diff_new_pack.DDdYWB/_old 2018-05-23 16:05:16.454394025 +0200 +++ /var/tmp/diff_new_pack.DDdYWB/_new 2018-05-23 16:05:16.458393878 +0200 @@ -1,7 +1,7 @@ .\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "SUSECONNECT" "8" "June 2017" "" "SUSEConnect" +.TH "SUSECONNECT" "8" "March 2018" "" "SUSEConnect" . .SH "NAME" \fBSUSEConnect\fR \- SUSE Customer Center registration tool ++++++ suse-connect-0.3.10.gem -> 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/client.rb new/lib/suse/connect/client.rb --- old/lib/suse/connect/client.rb 2018-04-24 12:40:15.000000000 +0200 +++ new/lib/suse/connect/client.rb 2018-05-16 14:27:15.000000000 +0200 @@ -29,14 +29,7 @@ register_product(product, @config.product ? true : false) # Only register recommended packages for base products - if product.isbase - tree = show_product(product) - recommended = flatten_tree(tree).select { |e| e[:recommended] == true } - - recommended.each do |extension| - register_product(extension) - end - end + register_product_tree(show_product(product)) if product.isbase log.info 'Successfully registered system.' end @@ -205,6 +198,19 @@ private + # Traverses (depth-first search) the product tree + # and registers the recommended and available products. + def register_product_tree(product) + product.extensions.each do |extension| + # We need to explicitly check whether `.available` is `false`, + # because SCC does not return this attribute, only SMT & RMT do. + if extension.recommended && extension.available != false + register_product(extension) + register_product_tree(extension) + end + end + end + def deregister_product(product) raise BaseProductDeactivationError if product == Zypper.base_product service = deactivate_product product diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/suse/connect/migration.rb new/lib/suse/connect/migration.rb --- old/lib/suse/connect/migration.rb 2018-04-24 12:40:15.000000000 +0200 +++ new/lib/suse/connect/migration.rb 2018-05-16 14:27:15.000000000 +0200 @@ -28,12 +28,12 @@ service = client.downgrade_product(base_product) refresh_service service - # Fetch the product tree an get all installed products in right order + # Fetch the product tree and get all installed products in right order installed = Hash[status.installed_products.collect { |p| [p.identifier, p] }] tree = client.show_product(base_product) extensions = client.flatten_tree(tree).select do |extension| - installed.include? extension.identifier + installed.key? extension.identifier end.map(&:identifier) # Rollback all extensions @@ -98,7 +98,7 @@ SUSE::Connect::Zypper.install_release_package(identifier) end - # Removes service an readds service with current url and name + # Removes service and readds service with current url and name # @param Service service which should be refreshed def refresh_service(service) # INFO: Remove old and new service because this could be called after filesystem rollback or diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/suse/connect/version.rb new/lib/suse/connect/version.rb --- old/lib/suse/connect/version.rb 2018-04-24 12:40:15.000000000 +0200 +++ new/lib/suse/connect/version.rb 2018-05-16 14:27:15.000000000 +0200 @@ -1,6 +1,5 @@ module SUSE - # Provides access to version number of a gem module Connect - VERSION = '0.3.10' + VERSION = '0.3.11' end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2018-04-24 12:40:15.000000000 +0200 +++ new/metadata 2018-05-16 14:27:15.000000000 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: suse-connect version: !ruby/object:Gem::Version - version: 0.3.10 + version: 0.3.11 platform: ruby authors: - SUSE Customer Center Team autorequire: bindir: bin cert_chain: [] -date: 2018-04-24 00:00:00.000000000 Z +date: 2018-05-16 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.6 +rubygems_version: 2.7.3 signing_key: specification_version: 4 summary: SUSE Connect utility to register a system with the SUSE Customer Center
