Hello community, here is the log from the commit of package rmt-server for openSUSE:Factory checked in at 2018-12-07 14:40:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rmt-server (Old) and /work/SRC/openSUSE:Factory/.rmt-server.new.19453 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rmt-server" Fri Dec 7 14:40:11 2018 rev:16 rq:656016 version:1.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rmt-server/rmt-server.changes 2018-11-13 17:42:20.920228865 +0100 +++ /work/SRC/openSUSE:Factory/.rmt-server.new.19453/rmt-server.changes 2018-12-07 14:40:23.574700044 +0100 @@ -1,0 +2,56 @@ +Thu Dec 6 15:00:00 UTC 2018 - tmunta...@suse.com + +- Version 1.1.0 + +------------------------------------------------------------------- +Wed Dec 5 14:30:00 UTC 2018 - tmunta...@suse.com + +- Bugfix: Alias commands in short form no longer raise an exception + * remove -> rm -> r + * list -> ls -> l + +------------------------------------------------------------------- +Mon Dec 3 17:00:00 UTC 2018 - tmunta...@suse.com + +- Added ability to enable/disable multiple repositories at the + same time. + +------------------------------------------------------------------- +Mon Dec 3 16:08:00 UTC 2018 - tmunta...@suse.com + +- The command `rmt-cli products list` is more compact for smaller + screens. + +------------------------------------------------------------------- +Thu Nov 22 15:31:29 UTC 2018 - hschm...@suse.com + +- Remove the "No product license found" message when mirroring. + It's not useful for users, and it was just causing confusion, + as many people mistook it for an error. + +------------------------------------------------------------------- +Thu Nov 22 11:23:18 UTC 2018 - wstephen...@suse.com + +- Register to SLP if a server running on this host (bsc#1113760) + +------------------------------------------------------------------- +Wed Nov 21 10:30:44 UTC 2018 - sko...@suse.com + +- Modules for migration are being sorted in the correct order + +------------------------------------------------------------------- +Tue Nov 20 11:57:10 UTC 2018 - tmunta...@suse.com + +- Added the ability to localize RMT + +------------------------------------------------------------------- +Fri Nov 9 13:24:52 UTC 2018 - sschric...@suse.de + +- Add bash completion for rmt-cli + +------------------------------------------------------------------- +Thu Nov 8 15:37:57 UTC 2018 - tmunta...@suse.com + +- Added ability to enable/disable multiple products at the same time + +------------------------------------------------------------------- @@ -5,0 +62,2 @@ +- Offline migrations will automatically add additional modules + to the client systems depending on the base product Old: ---- rmt-server-1.0.7.tar.bz2 New: ---- rmt-cli_bash-completion.sh rmt-server-1.1.0.tar.bz2 rmt-server.reg ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rmt-server.spec ++++++ --- /var/tmp/diff_new_pack.KKSIDg/_old 2018-12-07 14:40:24.930698365 +0100 +++ /var/tmp/diff_new_pack.KKSIDg/_new 2018-12-07 14:40:24.938698355 +0100 @@ -26,7 +26,7 @@ %define is_sle_12_family 1 %endif Name: rmt-server -Version: 1.0.7 +Version: 1.1.0 Release: 0 Summary: Repository mirroring tool and registration proxy for SCC License: GPL-2.0-or-later @@ -49,6 +49,8 @@ Source14: nginx-https.conf Source15: auth-handler.conf Source16: auth-location.conf +Source17: rmt-cli_bash-completion.sh +Source18: rmt-server.reg Patch0: use-ruby-2.5-in-rmt-cli.patch Patch1: use-ruby-2.5-in-rails.patch Patch2: use-ruby-2.5-in-rmt-data-import.patch @@ -167,6 +169,11 @@ mkdir -p %{buildroot}%{_libexecdir}/supportconfig/plugins install -D -m 544 support/rmt %{buildroot}%{_libexecdir}/supportconfig/plugins/rmt +# bash completion +install -D -m 644 %{SOURCE17} %{buildroot}%{_datadir}/bash-completion/completions/rmt-cli + +install -D -m 644 %{SOURCE18} %{buildroot}%{_sysconfdir}/slp.reg.d/rmt-server.reg + # cleanup of /usr/bin/env commands grep -rl '\/usr\/bin\/env ruby' %{buildroot}%{lib_dir}/vendor/bundle/ruby | xargs \ sed -i -e 's@\/usr\/bin\/env ruby.ruby2\.5@\/usr\/bin\/ruby\.ruby2\.5@g' \ @@ -206,9 +213,11 @@ %dir %{_sysconfdir}/nginx %dir %{_sysconfdir}/nginx/vhosts.d %dir /var/lib/rmt +%dir %{_sysconfdir}/slp.reg.d %config(noreplace) %attr(0640, %{rmt_user},root) %{_sysconfdir}/rmt.conf %config(noreplace) %{_sysconfdir}/nginx/vhosts.d/rmt-server-http.conf %config(noreplace) %{_sysconfdir}/nginx/vhosts.d/rmt-server-https.conf +%config(noreplace) %{_sysconfdir}/slp.reg.d/rmt-server.reg %{_mandir}/man8/rmt-cli.8%{?ext_man} %{_bindir}/rmt-cli %{_bindir}/rmt-data-import @@ -223,6 +232,9 @@ %{_unitdir}/rmt-server-mirror.timer %{_unitdir}/rmt-server-sync.service %{_unitdir}/rmt-server-sync.timer +%dir %{_datadir}/bash-completion/ +%dir %{_datadir}/bash-completion/completions/ +%{_datadir}/bash-completion/completions/rmt-cli %{_libdir}/rmt %{_libexecdir}/supportconfig/plugins/rmt ++++++ rmt-cli.8.gz ++++++ --- /var/tmp/diff_new_pack.KKSIDg/_old 2018-12-07 14:40:25.014698261 +0100 +++ /var/tmp/diff_new_pack.KKSIDg/_new 2018-12-07 14:40:25.018698256 +0100 @@ -1,7 +1,7 @@ .\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "RMT\-CLI" "8" "September 2018" "" "RMT" +.TH "RMT\-CLI" "8" "December 2018" "" "RMT" . .SH "NAME" \fBrmt\-cli\fR \- control and configure your RMT server @@ -38,12 +38,42 @@ Use the \fB\-\-csv\fR flag to output the list in CSV format\. . .TP -\fBrmt\-cli products enable <id | string>\fR -Enables mandatory repositories of a single product by its id or identifier string\. +\fBrmt\-cli products enable <id | string>\.\.\.\fR +Enable mirroring of product repositories by a list of product IDs or product strings\. +. +.IP +Use the \fB\-\-all\-modules\fR flag to enable all free modules for a product\. +. +.IP +Examples: +. +.IP +\fBrmt\-cli products enable SLES/15\fR +. +.IP +\fBrmt\-cli products enable 1575\fR +. +.IP +\fBrmt\-cli products enable SLES/15/x86_64 1743\fR +. +.IP +\fBrmt\-cli products enable \-\-all\-modules SLES/15\fR . .TP -\fBrmt\-cli products disable <id | string>\fR -Disables all repositories of a single product by its id or identifier string\. +\fBrmt\-cli products disable <id | string>\.\.\.\fR +Disable mirroring of product repositories by a list of product IDs or product strings\. +. +.IP +Examples: +. +.IP +\fBrmt\-cli products disable SLES/15\fR +. +.IP +\fBrmt\-cli products disable 1575\fR +. +.IP +\fBrmt\-cli products disable SLES/15/x86_64 1743\fR . .TP \fBrmt\-cli repos list [\-\-all] [\-\-csv]\fR @@ -56,12 +86,30 @@ Use the \fB\-\-csv\fR flag to output the list in CSV format\. . .TP -\fBrmt\-cli repos enable <id>\fR -Enables a single repository by its id\. +\fBrmt\-cli repos enable <id>\.\.\.\fR +Enable mirroring of repositories by a list of repository IDs +. +.IP +Examples: +. +.IP +\fBrmt\-cli repos enable 2526\fR +. +.IP +\fBrmt\-cli repos enable 2526 3263\fR . .TP -\fBrmt\-cli repos disable <id>\fR -Disables a single repository by its id\. +\fBrmt\-cli repos disable <id>\.\.\.\fR +Disable mirroring of repositories by a list of repository IDs +. +.IP +Examples: +. +.IP +\fBrmt\-cli repos disable 2526\fR +. +.IP +\fBrmt\-cli repos disable 2526 3263\fR . .TP \fBrmt\-cli mirror\fR ++++++ rmt-cli_bash-completion.sh ++++++ # Completion script for SUSE RMT: rmt-cli # # COMP_WORDS are all words in the current cli feed # COMP_CWORD is the index of the most recent word in COMP_WORDS # COMPREPLY is an array of words, which will be searched for possible # completions, *after* _rmt-cli() exited # main completion routine _rmt-cli() { COMPREPLY=() local current_word subcommand options depth current_word=${COMP_WORDS[COMP_CWORD]} subcommand=${COMP_WORDS[1]} options="sync products repos mirror import export version help" depth=1 if [[ ${subcommand} =~ ^(sync|mirror|version)$ ]] ; then : # these subcommands can't currently be completed further elif _rmt-cli-default-completion "${options[@]}" $depth ; then : elif [[ ${subcommand} =~ ^(product|products|repo|repos|import|export)$ ]] ; then ((depth++)) _rmt-cli_$subcommand $depth fi } # parameter 1: completion options # parameter 2: count of already handled words (`depth`) _rmt-cli-default-completion() { local options depth current_word options=$1 depth=$2 current_word=${COMP_WORDS[COMP_CWORD]} if [[ ${COMP_CWORD} == ${depth} ]] ; then COMPREPLY=( $(compgen -W "${options}" -- ${current_word}) ) return 0 elif [[ ${COMP_WORDS[$depth]} == help && ${COMP_CWORD} == $((depth + 1)) ]] ; then COMPREPLY=( $(compgen -W "${options/help/}" -- ${current_word}) ) return 0 fi return 1 } # subcommand completion routines # all of these expect the count of already handled words (`depth`) as first parameter _rmt-cli_products() { local current_word options flags current_word=${COMP_WORDS[COMP_CWORD]} options="list enable disable help" flags="--all --csv --release-stage=" if _rmt-cli-default-completion "${options[@]}" $1 ; then : elif [[ ${current_word} == -* && ${COMP_WORDS[*]} =~ enable ]] ; then COMPREPLY=( $(compgen -W "--all-modules" -- ${current_word}) ) elif [[ ${current_word} == -* && ${COMP_WORDS[2]} =~ ^(list|ls)$ ]] ; then COMPREPLY=( $(compgen -W "${flags}" -- ${current_word}) ) [[ $COMPREPLY == "--release-stage=" ]] && compopt -o nospace fi } _rmt-cli_repos() { local current_word options flags depth current_word=${COMP_WORDS[COMP_CWORD]} options="list enable disable custom help" flags="--all --csv" depth=$1 if _rmt-cli-default-completion "${options[@]}" $depth ; then : elif [[ ${COMP_CWORD} > 2 && ${COMP_WORDS[2]} == custom ]] ; then ((depth++)) _rmt-cli_repos_custom $depth elif [[ ${current_word} == -* && ${COMP_WORDS[2]} =~ ^(list|ls)$ ]] ; then COMPREPLY=( $(compgen -W "${flags}" -- ${current_word}) ) fi } _rmt-cli_repos_custom() { local current_word options flags current_word=${COMP_WORDS[COMP_CWORD]} options="list add enable disable remove products attach detach help" flags="--csv" if _rmt-cli-default-completion "${options[@]}" $1 ; then : elif [[ ${current_word} == -* && ${COMP_WORDS[3]} =~ ^(list|ls|products)$ ]] ; then COMPREPLY=( $(compgen -W "${flags}" -- ${current_word}) ) fi } _rmt-cli_import() { local current_word options current_word=${COMP_WORDS[COMP_CWORD]} options="data repos help" if _rmt-cli-default-completion "${options[@]}" $1 ; then : elif [[ ${COMP_CWORD} == 3 ]] ; then COMPREPLY=( $(compgen -f $current_word) ) fi } _rmt-cli_export() { local current_word options current_word=${COMP_WORDS[COMP_CWORD]} options="data settings repos help" if _rmt-cli-default-completion "${options[@]}" $1 ; then : elif [[ ${COMP_CWORD} == 3 ]] ; then COMPREPLY=( $(compgen -f ${current_word}) ) fi } # alias functions: _rmt-cli_repo() { _rmt-cli_repos } _rmt-cli_product() { _rmt-cli_products } complete -F _rmt-cli rmt-cli ++++++ rmt-server-1.0.7.tar.bz2 -> rmt-server-1.1.0.tar.bz2 ++++++ /work/SRC/openSUSE:Factory/rmt-server/rmt-server-1.0.7.tar.bz2 /work/SRC/openSUSE:Factory/.rmt-server.new.19453/rmt-server-1.1.0.tar.bz2 differ: char 11, line 1 ++++++ rmt-server-migration.service ++++++ --- /var/tmp/diff_new_pack.KKSIDg/_old 2018-12-07 14:40:25.070698191 +0100 +++ /var/tmp/diff_new_pack.KKSIDg/_new 2018-12-07 14:40:25.070698191 +0100 @@ -7,7 +7,7 @@ [Service] Type=oneshot User=_rmt -Environment=LOG_TO_JOURNALD=1 +Environment="LOG_TO_JOURNALD=1" "LANG=en" WorkingDirectory=/usr/share/rmt ExecStart=/usr/share/rmt/bin/rails db:create db:migrate RAILS_ENV=production ++++++ rmt-server-mirror.service ++++++ --- /var/tmp/diff_new_pack.KKSIDg/_old 2018-12-07 14:40:25.094698162 +0100 +++ /var/tmp/diff_new_pack.KKSIDg/_new 2018-12-07 14:40:25.094698162 +0100 @@ -6,7 +6,7 @@ [Service] Type=simple Restart=no -Environment=LOG_TO_JOURNALD=1 +Environment="LOG_TO_JOURNALD=1" "LANG=en" ExecStart=/usr/share/rmt/bin/rmt-cli mirror [Install] ++++++ rmt-server-sync.service ++++++ --- /var/tmp/diff_new_pack.KKSIDg/_old 2018-12-07 14:40:25.134698112 +0100 +++ /var/tmp/diff_new_pack.KKSIDg/_new 2018-12-07 14:40:25.134698112 +0100 @@ -6,7 +6,7 @@ [Service] Type=simple Restart=no -Environment=LOG_TO_JOURNALD=1 +Environment="LOG_TO_JOURNALD=1" "LANG=en" ExecStart=/usr/share/rmt/bin/rmt-cli sync [Install] ++++++ rmt-server.reg ++++++ ############################################################################# # # OpenSLP registration file # # register Repository Mirroring Tool registration service # ############################################################################# # Register the RMT server, if it's running service:registration.suse:rmt:https://$HOSTNAME/connect,en,65535 tcp-port=443 type=server description=RMT registration URL for clients ++++++ rmt-server.service ++++++ --- /var/tmp/diff_new_pack.KKSIDg/_old 2018-12-07 14:40:25.182698052 +0100 +++ /var/tmp/diff_new_pack.KKSIDg/_new 2018-12-07 14:40:25.182698052 +0100 @@ -9,7 +9,7 @@ Type=simple User=_rmt PrivateTmp=yes -Environment=LOG_TO_JOURNALD=1 +Environment="LOG_TO_JOURNALD=1" "LANG=en" WorkingDirectory=/usr/share/rmt ExecStart=/usr/share/rmt/bin/rails server -e production -b 127.0.0.1 Restart=always