Hello community, here is the log from the commit of package SUSEConnect for openSUSE:Factory checked in at 2018-12-10 12:23:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/SUSEConnect (Old) and /work/SRC/openSUSE:Factory/.SUSEConnect.new.19453 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "SUSEConnect" Mon Dec 10 12:23:18 2018 rev:16 rq:656015 version:0.3.16 Changes: -------- --- /work/SRC/openSUSE:Factory/SUSEConnect/SUSEConnect.changes 2018-11-12 09:36:42.625595454 +0100 +++ /work/SRC/openSUSE:Factory/.SUSEConnect.new.19453/SUSEConnect.changes 2018-12-10 12:23:19.826826865 +0100 @@ -1,0 +2,12 @@ +Fri Dec 7 10:43:29 UTC 2018 - [email protected] + +- Update to 0.3.16 + - Show non-enabled extensions with a remark about availability + +------------------------------------------------------------------- +Fri Nov 16 14:04:19 UTC 2018 - [email protected] + +- Update to 0.3.15 + - Output information about registration and de-registration progress + +------------------------------------------------------------------- Old: ---- suse-connect-0.3.14.gem New: ---- suse-connect-0.3.16.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ SUSEConnect.spec ++++++ --- /var/tmp/diff_new_pack.aOkKLk/_old 2018-12-10 12:23:20.242826451 +0100 +++ /var/tmp/diff_new_pack.aOkKLk/_new 2018-12-10 12:23:20.246826446 +0100 @@ -17,7 +17,7 @@ Name: SUSEConnect -Version: 0.3.14 +Version: 0.3.16 Release: 0 %define mod_name suse-connect %define mod_full_name %{mod_name}-%{version} ++++++ SUSEConnect.5 ++++++ --- /var/tmp/diff_new_pack.aOkKLk/_old 2018-12-10 12:23:20.270826422 +0100 +++ /var/tmp/diff_new_pack.aOkKLk/_new 2018-12-10 12:23:20.270826422 +0100 @@ -1,7 +1,7 @@ .\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "SUSECONNECT" "5" "February 2017" "" "SUSEConnect" +.TH "SUSECONNECT" "5" "November 2018" "" "SUSEConnect" . .SH "NAME" \fBSUSEConnect\fR \- SUSE Customer Center registration tool config file ++++++ SUSEConnect.8 ++++++ --- /var/tmp/diff_new_pack.aOkKLk/_old 2018-12-10 12:23:20.286826407 +0100 +++ /var/tmp/diff_new_pack.aOkKLk/_new 2018-12-10 12:23:20.286826407 +0100 @@ -1,7 +1,7 @@ .\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "SUSECONNECT" "8" "May 2017" "" "SUSEConnect" +.TH "SUSECONNECT" "8" "November 2018" "" "SUSEConnect" . .SH "NAME" \fBSUSEConnect\fR \- SUSE Customer Center registration tool ++++++ suse-connect-0.3.14.gem -> suse-connect-0.3.16.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-11-09 14:18:48.000000000 +0100 +++ new/lib/suse/connect/client.rb 2018-12-07 12:50:58.000000000 +0100 @@ -23,6 +23,7 @@ # Announces the system, activates the product on SCC and adds the service to the system def register! + print_information(:register) announce_or_update product = @config.product || Zypper.base_product @@ -31,17 +32,20 @@ # Only register recommended packages for base products register_product_tree(show_product(product)) if product.isbase - log.info 'Successfully registered system.' + log.info "\nSuccessfully registered system\n".log_green.bold end # Activate the product, add the service and install the release package def register_product(product, install_release_package = true) + log.info "\nActivating #{product.identifier} #{product.version} #{product.arch} ..." service = activate_product(product, @config.email) + log.info '-> Adding service to system ...' System.add_service(service, [email protected]_zypper_refs) - Zypper.install_release_package(product.identifier) if install_release_package - - print_success_message(product) + if install_release_package + log.info '-> Installing release package ...' + Zypper.install_release_package(product.identifier) + end end # Deregisters a whole system or a single product @@ -49,6 +53,7 @@ # @returns: Empty body and 204 status code def deregister! raise SystemNotRegisteredError unless registered? + print_information :deregister if @config.product deregister_product(@config.product) else @@ -60,8 +65,9 @@ deregister_product(product) end @api.deregister(system_auth) + log.info "\nCleaning up ..." System.cleanup! - log.info 'Successfully deregistered system.' + log.info "Successfully deregistered system\n".log_green.bold end end @@ -83,6 +89,7 @@ # # @returns: [Array] login, password tuple. Those credentials are given by SCC/Registration Proxy def announce_system(distro_target = nil, instance_data_file = nil) + log.info "\nAnnouncing system to #{@config.url} ...".bold instance_data = System.read_file(instance_data_file) if instance_data_file params = [token_auth(@config.token), distro_target, instance_data] params.push(@config.namespace) if @config.namespace @@ -94,6 +101,7 @@ # Re-send the system's hardware details on SCC # def update_system(distro_target = nil, instance_data_file = nil) + log.info "\nUpdating system details on #{@config.url} ...".bold instance_data = System.read_file(instance_data_file) if instance_data_file params = [system_auth, distro_target, instance_data] params.push(@config.namespace) if @config.namespace @@ -213,10 +221,11 @@ def deregister_product(product) raise BaseProductDeactivationError if product == Zypper.base_product + log.info "\nDeactivating #{product.identifier} #{product.version} #{product.arch} ..." service = deactivate_product product remove_or_refresh_service(service) + log.info '-> Removing release package ...' Zypper.remove_release_package product.identifier - print_success_message product, action: 'Deregistered' end # Announces the system to the server, receiving and storing its credentials. @@ -240,16 +249,22 @@ # Refreshing the service instead to remove the repos of deregistered product. def remove_or_refresh_service(service) if service.name == 'SMT_DUMMY_NOREMOVE_SERVICE' + log.info '-> Refreshing service ...' Zypper.refresh_all_services else + log.info '-> Removing service from system ...' System.remove_service service end end - def print_success_message(product, action: 'Registered') - log.info "#{action} #{product.identifier} #{product.version} #{product.arch}" + def print_information(action) + server = (@config.url == 'https://scc.suse.com') ? 'SUSE Customer Center' : "registration proxy #{@config.url}" + if action == :register + log.info "Registering system to #{server}".bold if @config.url + elsif @config.url + log.info "Deregistering system from #{server}".bold + end log.info "Rooted at: #{@config.filesystem_root}" if @config.filesystem_root - log.info "To server: #{@config.url}" if @config.url log.info "Using E-Mail: #{@config.email}" if @config.email end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/suse/connect/logger.rb new/lib/suse/connect/logger.rb --- old/lib/suse/connect/logger.rb 2018-11-09 14:18:48.000000000 +0100 +++ new/lib/suse/connect/logger.rb 2018-12-07 12:50:58.000000000 +0100 @@ -54,6 +54,18 @@ def self.included(base) base.extend self end + + def log_green + "\e[32m#{self}\e[0m" + end + + def log_red + "\e[31m#{self}\e[0m" + end + + def bold + "\e[1m#{self}\e[22m" + end end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/suse/connect/status.rb new/lib/suse/connect/status.rb --- old/lib/suse/connect/status.rb 2018-11-09 14:18:48.000000000 +0100 +++ new/lib/suse/connect/status.rb 2018-12-07 12:50:58.000000000 +0100 @@ -64,9 +64,8 @@ def extract_extensions(product) extensions = [] product.extensions.each do |extension| - # Skip products which have `available: false` set by SMT. - next if extension.available == false extensions << { + available: extension.available.nil? ? true : extension.available, activation_code: build_product_activation_code(extension), name: extension.friendly_name, free: extension.free, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/suse/connect/templates/extension_item.text.erb new/lib/suse/connect/templates/extension_item.text.erb --- old/lib/suse/connect/templates/extension_item.text.erb 2018-11-09 14:18:48.000000000 +0100 +++ new/lib/suse/connect/templates/extension_item.text.erb 2018-12-07 12:50:58.000000000 +0100 @@ -1,11 +1,8 @@ <%= indent(level) %>\e[1m<%= extension[:name] %>\e[0m<% - if extension[:installed] - %> \e[32m(Installed)\e[0m -<%= indent(level) %>Deactivate with: <%= @binary %> \e[31m-d\e[0m -p <%= extension[:activation_code] %><% - else %><% - if extension[:activated] - %> \e[33m(Activated)\e[0m<% - end %> -<%= indent(level) %>Activate with: <%= @binary %><%= ' ' if any_installed %> -p <%= extension[:activation_code] %><% unless extension[:free] %> -r \e[32m\e[1mADDITIONAL REGCODE\e[0m<% - end %><% - end %> +unless extension[:available] %> \e[31m(Not available)\e[0m<% end -%> +<% if extension[:activated] %> \e[33m(Activated)\e[0m<% end -%> +<% if extension[:activated] %> +<%= indent(level) %>Deactivate with: <%= @binary %> \e[31m-d\e[0m -p <%= extension[:activation_code] %> +<% else %> +<%= indent(level) %>Activate with: <%= @binary %> -p <%= extension[:activation_code] %><% unless extension[:free] %> -r \e[32m\e[1mADDITIONAL REGCODE\e[0m <% end %> +<% end -%> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/suse/connect/templates/extensions_list.text.erb new/lib/suse/connect/templates/extensions_list.text.erb --- old/lib/suse/connect/templates/extensions_list.text.erb 2018-11-09 14:18:48.000000000 +0100 +++ new/lib/suse/connect/templates/extensions_list.text.erb 2018-12-07 12:50:58.000000000 +0100 @@ -4,8 +4,13 @@ <% available_system_extensions.sort_by { |ext| ext[:name] }.each do |extension| -%> <%= render 'extension.text', { extension: extension, any_installed: any_installed, level: 1 } -%> <% end -%> + +\e[1mREMARKS\e[0m + +\e[31m(Not available)\e[0m The module/extension is \e[1mnot\e[0m enabled on your RMT/SMT +\e[33m(Activated)\e[0m The module/extension is activated on your system + \e[1mMORE INFORMATION\e[0m You can find more information about available modules here: https://www.suse.com/products/server/features/modules.html - 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-11-09 14:18:48.000000000 +0100 +++ new/lib/suse/connect/version.rb 2018-12-07 12:50:58.000000000 +0100 @@ -1,5 +1,5 @@ module SUSE module Connect - VERSION = '0.3.14' + VERSION = '0.3.16' end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2018-11-09 14:18:48.000000000 +0100 +++ new/metadata 2018-12-07 12:50:58.000000000 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: suse-connect version: !ruby/object:Gem::Version - version: 0.3.14 + version: 0.3.16 platform: ruby authors: - SUSE Customer Center Team autorequire: bindir: bin cert_chain: [] -date: 2018-11-09 00:00:00.000000000 Z +date: 2018-12-07 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
