Hello community, here is the log from the commit of package opi for openSUSE:Factory checked in at 2019-08-19 21:41:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/opi (Old) and /work/SRC/openSUSE:Factory/.opi.new.22127 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "opi" Mon Aug 19 21:41:41 2019 rev:7 rq:724415 version:0.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/opi/opi.changes 2019-06-12 13:16:51.784655369 +0200 +++ /work/SRC/openSUSE:Factory/.opi.new.22127/opi.changes 2019-08-19 21:42:08.792281541 +0200 @@ -1,0 +2,16 @@ +Sun Aug 18 22:53:14 UTC 2019 - Yunhe Guo <[email protected]> + +- Version 0.6.0 + * Added + - Search spinner + * Fixed + - Packman repo doesn't have *.repo file + - Long version numbers are cutted + +------------------------------------------------------------------- +Sun Aug 18 17:24:57 UTC 2019 - Yunhe Guo <[email protected]> + +- Added perl(LWP::Protocol::https) dependency and change to more + compatible dependency format + +------------------------------------------------------------------- Old: ---- opi-0.5.2.tar.gz New: ---- opi-0.6.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ opi.spec ++++++ --- /var/tmp/diff_new_pack.w7FP2n/_old 2019-08-19 21:42:09.960281312 +0200 +++ /var/tmp/diff_new_pack.w7FP2n/_new 2019-08-19 21:42:09.988281306 +0200 @@ -17,19 +17,20 @@ Name: opi -Version: 0.5.2 +Version: 0.6.0 Release: 0 Summary: OBS Package Installer (CLI) -License: GPL-3.0 +License: GPL-3.0-only Group: System/Packages URL: https://github.com/openSUSE-zh/%{name} Source0: https://github.com/openSUSE-zh/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildArch: noarch Requires: perl -Requires: perl-libwww-perl -Requires: perl-XML-LibXML -Requires: perl-URI -Requires: perl-Config-Tiny +Requires: perl(Config::Tiny) +Requires: perl(LWP) +Requires: perl(LWP::Protocol::https) +Requires: perl(URI) +Requires: perl(XML::LibXML) %description OBS Package Installer (CLI) ++++++ opi-0.5.2.tar.gz -> opi-0.6.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/opi-0.5.2/CHANGELOG.md new/opi-0.6.0/CHANGELOG.md --- old/opi-0.5.2/CHANGELOG.md 2019-06-11 09:24:59.000000000 +0200 +++ new/opi-0.6.0/CHANGELOG.md 2019-08-19 00:48:48.000000000 +0200 @@ -7,6 +7,17 @@ ## [Unreleased] +## [0.6.0] + +### Added + +- Search spinner [#21](https://github.com/openSUSE-zh/opi/issues/21) + +### Fixed + +- Packman repo doesn't have *.repo file [#19](https://github.com/openSUSE-zh/opi/issues/19) +- Long version numbers are cutted [#17](https://github.com/openSUSE-zh/opi/issues/17) + ## [0.5.2] ### Fixed @@ -84,7 +95,8 @@ - Choose package and install - Keep or remove repository after installation -[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.5.2...HEAD +[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.6.0...HEAD +[0.6.0]: https://github.com/openSUSE-zh/opi/compare/v0.5.2...v0.6.0 [0.5.2]: https://github.com/openSUSE-zh/opi/compare/v0.5.1...v0.5.2 [0.5.1]: https://github.com/openSUSE-zh/opi/compare/v0.5.0...v0.5.1 [0.5.0]: https://github.com/openSUSE-zh/opi/compare/v0.4.0...v0.5.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/opi-0.5.2/README.md new/opi-0.6.0/README.md --- old/opi-0.5.2/README.md 2019-06-11 09:24:59.000000000 +0200 +++ new/opi-0.6.0/README.md 2019-08-19 00:48:48.000000000 +0200 @@ -28,13 +28,13 @@ ``` # Leap 15.0 -sudo zypper addrepo https://download.opensuse.org/repositories/home:guoyunhe/openSUSE_Leap_15.0/home:guoyunhe.repo +sudo zypper addrepo --refresh https://download.opensuse.org/repositories/home:guoyunhe/openSUSE_Leap_15.0/home:guoyunhe.repo # Leap 15.1 -sudo zypper addrepo https://download.opensuse.org/repositories/home:guoyunhe/openSUSE_Leap_15.1/home:guoyunhe.repo +sudo zypper addrepo --refresh https://download.opensuse.org/repositories/home:guoyunhe/openSUSE_Leap_15.1/home:guoyunhe.repo # Leap 42.3 -sudo zypper addrepo https://download.opensuse.org/repositories/home:guoyunhe/openSUSE_Leap_42.3/home:guoyunhe.repo +sudo zypper addrepo --refresh https://download.opensuse.org/repositories/home:guoyunhe/openSUSE_Leap_42.3/home:guoyunhe.repo # SLE 15 -sudo zypper addrepo https://download.opensuse.org/repositories/home:guoyunhe/SLE_15/home:guoyunhe.repo +sudo zypper addrepo --refresh https://download.opensuse.org/repositories/home:guoyunhe/SLE_15/home:guoyunhe.repo sudo zypper refresh sudo zypper install opi diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/opi-0.5.2/opi new/opi-0.6.0/opi --- old/opi-0.5.2/opi 2019-06-11 09:24:59.000000000 +0200 +++ new/opi-0.6.0/opi 2019-08-19 00:48:48.000000000 +0200 @@ -60,8 +60,27 @@ # # Search packages # -my @obs = search_published_binary('openSUSE', $obs_apiroot, @ARGV); -my @pmbs = search_published_binary('Packman', $pmbs_apiroot, @ARGV); +my @obs; +my @pmbs; +my $pid = fork(); +die if not defined $pid; +if (not $pid) { + # child process prints spinner + print 'Searching'; + for (;;) { + print '.'; + system 'sleep 1'; + } +} +else { + # parent process do request + @obs = search_published_binary('openSUSE', $obs_apiroot, @ARGV); + @pmbs = search_published_binary('Packman', $pmbs_apiroot, @ARGV); + # kill child process to stop spinner + kill 'KILL', $pid; + print "\n"; +} + my @bins = sort_binaries(@obs, @pmbs); my @binary_names = get_binary_names(@bins); @@ -258,7 +277,7 @@ my $colored_name = colored(substr($project, 0, 39) . ' ' . $symbol, $color); if ($number) { - printf("%2d. %-50s | %-10s | %-10s\n", $number, $colored_name, substr($binary->{version}, 0, 10), $binary->{arch}); + printf("%2d. %-50s | %-25s | %s\n", $number, $colored_name, substr($binary->{version}, 0, 25), $binary->{arch}); } else { print $colored_name, " | ", $binary->{version}, " | ", $binary->{arch}; } @@ -292,9 +311,9 @@ my $url = $obs_apiroot . $endpoint . '?match=' . uri_escape($xpath); - my $prox_url = $proxy_root . '?obs_api_link=' . uri_escape($url) . '&obs_instance=' . $obs_instance; + my $proxy_url = $proxy_root . '?obs_api_link=' . uri_escape($url) . '&obs_instance=' . $obs_instance; - my $req = HTTP::Request->new(GET => $prox_url); + my $req = HTTP::Request->new(GET => $proxy_url); my $ua = LWP::UserAgent->new; my $resp = $ua->request($req); if ($resp->is_success) { @@ -523,7 +542,7 @@ $prefix = 'openSUSE_Tumbleweed'; } - system "sudo zypper addrepo --refresh --priority 90 https://ftp.gwdg.de/pub/linux/misc/packman/suse/$prefix/packman.repo"; + system "sudo zypper addrepo --refresh --priority 90 --name Packman https://ftp.gwdg.de/pub/linux/misc/packman/suse/$prefix/ packman"; system "sudo zypper refresh"; if ($dup) {
