commit opi for openSUSE:Factory

2020-11-02 Thread root
Hello community,

here is the log from the commit of package opi for openSUSE:Factory checked in 
at 2020-11-02 10:36:42

Comparing /work/SRC/openSUSE:Factory/opi (Old)
 and  /work/SRC/openSUSE:Factory/.opi.new.3463 (New)


Package is "opi"

Mon Nov  2 10:36:42 2020 rev:15 rq:845320 version:0.9.0

Changes:

--- /work/SRC/openSUSE:Factory/opi/opi.changes  2020-10-05 19:43:07.729786573 
+0200
+++ /work/SRC/openSUSE:Factory/.opi.new.3463/opi.changes2020-11-02 
10:36:54.319317767 +0100
@@ -1,0 +2,5 @@
+Sun Nov  1 23:28:09 UTC 2020 - Yunhe Guo 
+
+- Fix appstream file location
+
+---



Other differences:
--
++ opi.spec ++
--- /var/tmp/diff_new_pack.XW3IoV/_old  2020-11-02 10:36:54.735318052 +0100
+++ /var/tmp/diff_new_pack.XW3IoV/_new  2020-11-02 10:36:54.739318055 +0100
@@ -52,8 +52,8 @@
 %install
 mkdir -p %{buildroot}%{_bindir}
 install %{name} %{buildroot}%{_bindir}
-mkdir -p %{buildroot}%{_datadir}/metadata
-cp org.openSUSE.opi.appdata.xml %{buildroot}%{_datadir}/metadata
+mkdir -p %{buildroot}%{_datadir}/metainfo
+cp org.openSUSE.opi.appdata.xml %{buildroot}%{_datadir}/metainfo
 mkdir -p %{buildroot}%{_datadir}/man/man8
 cp opi.8.gz %{buildroot}%{_datadir}/man/man8
 
@@ -61,8 +61,8 @@
 %license LICENSE
 %doc README.md screenshot.png
 %{_bindir}/%{name}
-%dir %{_datadir}/metadata
-%{_datadir}/metadata/org.openSUSE.opi.appdata.xml
+%dir %{_datadir}/metainfo
+%{_datadir}/metainfo/org.openSUSE.opi.appdata.xml
 %dir %{_datadir}/man
 %dir %{_datadir}/man/man8
 %{_datadir}/man/man8/opi.8.gz




commit opi for openSUSE:Factory

2020-10-05 Thread root
Hello community,

here is the log from the commit of package opi for openSUSE:Factory checked in 
at 2020-10-05 19:41:30

Comparing /work/SRC/openSUSE:Factory/opi (Old)
 and  /work/SRC/openSUSE:Factory/.opi.new.4249 (New)


Package is "opi"

Mon Oct  5 19:41:30 2020 rev:14 rq:839334 version:0.9.0

Changes:

--- /work/SRC/openSUSE:Factory/opi/opi.changes  2020-07-27 17:45:59.743315021 
+0200
+++ /work/SRC/openSUSE:Factory/.opi.new.4249/opi.changes2020-10-05 
19:43:07.729786573 +0200
@@ -1,0 +2,10 @@
+Sat Oct  3 14:06:15 UTC 2020 - Yunhe Guo 
+
+- Version 0.9.0
+  * Added
+- Help (-h, --help) and version (-v, --version) option
+  * Changed
+- Filter out -devel, -docs and -lang packages
+- Don't show i586 packages on x86_64 system
+
+---

Old:

  opi-0.8.3.tar.gz

New:

  opi-0.9.0.tar.gz



Other differences:
--
++ opi.spec ++
--- /var/tmp/diff_new_pack.0qufXf/_old  2020-10-05 19:43:08.237787069 +0200
+++ /var/tmp/diff_new_pack.0qufXf/_new  2020-10-05 19:43:08.241787073 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   opi
-Version:0.8.3
+Version:0.9.0
 Release:0
 Summary:OBS Package Installer (CLI)
 License:GPL-3.0-only
@@ -25,6 +25,13 @@
 URL:https://github.com/openSUSE/%{name}
 Source0:
https://github.com/openSUSE/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 BuildArch:  noarch
+BuildRequires:  help2man
+BuildRequires:  perl
+BuildRequires:  perl(Config::Tiny)
+BuildRequires:  perl(LWP)
+BuildRequires:  perl(LWP::Protocol::https)
+BuildRequires:  perl(URI)
+BuildRequires:  perl(XML::LibXML)
 Requires:   perl
 Requires:   perl(Config::Tiny)
 Requires:   perl(LWP)
@@ -39,14 +46,25 @@
 %setup -q
 
 %build
+help2man ./opi > opi.8.gz
+gzip opi.8.gz
 
 %install
 mkdir -p %{buildroot}%{_bindir}
 install %{name} %{buildroot}%{_bindir}
+mkdir -p %{buildroot}%{_datadir}/metadata
+cp org.openSUSE.opi.appdata.xml %{buildroot}%{_datadir}/metadata
+mkdir -p %{buildroot}%{_datadir}/man/man8
+cp opi.8.gz %{buildroot}%{_datadir}/man/man8
 
 %files
 %license LICENSE
 %doc README.md screenshot.png
 %{_bindir}/%{name}
+%dir %{_datadir}/metadata
+%{_datadir}/metadata/org.openSUSE.opi.appdata.xml
+%dir %{_datadir}/man
+%dir %{_datadir}/man/man8
+%{_datadir}/man/man8/opi.8.gz
 
 %changelog

++ opi-0.8.3.tar.gz -> opi-0.9.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.8.3/CHANGELOG.md new/opi-0.9.0/CHANGELOG.md
--- old/opi-0.8.3/CHANGELOG.md  2020-07-25 14:23:24.0 +0200
+++ new/opi-0.9.0/CHANGELOG.md  2020-10-03 15:48:17.0 +0200
@@ -7,6 +7,17 @@
 
 ## [Unreleased]
 
+## [0.9.0]
+
+### Added
+
+- Help (-h, --help) and version (-v, --version) option
+
+### Changed
+
+- Filter out -devel, -docs and -lang packages 
[#30](https://github.com/openSUSE/opi/pulls/27)
+- Don't show i586 packages on x86_64 system
+
 ## [0.8.3] - 2020-07-25
 
 ### Fixed
@@ -135,7 +146,8 @@
 - Choose package and install
 - Keep or remove repository after installation
 
-[Unreleased]: https://github.com/openSUSE/opi/compare/v0.8.3...HEAD
+[Unreleased]: https://github.com/openSUSE/opi/compare/v0.9.0...HEAD
+[0.9.0]: https://github.com/openSUSE/opi/compare/v0.8.3...v0.9.0
 [0.8.3]: https://github.com/openSUSE/opi/compare/v0.8.2...v0.8.3
 [0.8.2]: https://github.com/openSUSE/opi/compare/v0.8.1...v0.8.2
 [0.8.1]: https://github.com/openSUSE/opi/compare/v0.8.0...v0.8.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.8.3/opi new/opi-0.9.0/opi
--- old/opi-0.8.3/opi   2020-07-25 14:23:24.0 +0200
+++ new/opi-0.9.0/opi   2020-10-03 15:48:17.0 +0200
@@ -16,15 +16,38 @@
 use Term::ANSIColor;
 use File::Temp;
 
+my $version_number = '0.9.0';
+
+my $help_text = <<'END_HELP';
+
+Usage:
+opi [OPTION]... KEYWORDS...
+
+Options:
+-h, --help  Show help text.
+-v, --version   Show version number.
+
+END_HELP
+
 #
 # Check command line arguments
 #
 unless (scalar @ARGV) {
-print "Please specify query keywords. For example:\n";
-print "\topi pcsx2\n";
+print $help_text;
 exit 1;
 }
 
+if ($ARGV[0] eq '--help' || $ARGV[0] eq '-h') {
+print $help_text;
+exit;
+}
+
+if ($ARGV[0] eq '--version' || $ARGV[0] eq '-v') {
+print $version_number . "\n";
+exit;
+}
+
+
 #
 # Check for packages not from OBS
 #
@@ -349,12 +372,8 @@
 next;
 }
 
-# Filter out debuginfo, debugsource, buildsymbols packages
-if ( substr($binary_data{'name'}, -10) eq '-debuginfo' ) {
-next;
-} elsif ( substr($bin

commit opi for openSUSE:Factory

2020-07-27 Thread root
Hello community,

here is the log from the commit of package opi for openSUSE:Factory checked in 
at 2020-07-27 17:44:14

Comparing /work/SRC/openSUSE:Factory/opi (Old)
 and  /work/SRC/openSUSE:Factory/.opi.new.3592 (New)


Package is "opi"

Mon Jul 27 17:44:14 2020 rev:13 rq:822764 version:0.8.3

Changes:

--- /work/SRC/openSUSE:Factory/opi/opi.changes  2020-05-16 22:28:22.417524246 
+0200
+++ /work/SRC/openSUSE:Factory/.opi.new.3592/opi.changes2020-07-27 
17:45:59.743315021 +0200
@@ -1,0 +2,7 @@
+Sat Jul 25 12:29:41 UTC 2020 - Yunhe Guo 
+
+- Version 0.8.3
+  * Fixed
+- ffmpeg/libav packages due to Packman update
+
+---

Old:

  opi-0.8.2.tar.gz

New:

  opi-0.8.3.tar.gz



Other differences:
--
++ opi.spec ++
--- /var/tmp/diff_new_pack.39OOEU/_old  2020-07-27 17:46:00.847316058 +0200
+++ /var/tmp/diff_new_pack.39OOEU/_new  2020-07-27 17:46:00.851316062 +0200
@@ -17,13 +17,13 @@
 
 
 Name:   opi
-Version:0.8.2
+Version:0.8.3
 Release:0
 Summary:OBS Package Installer (CLI)
 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
+URL:https://github.com/openSUSE/%{name}
+Source0:
https://github.com/openSUSE/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 BuildArch:  noarch
 Requires:   perl
 Requires:   perl(Config::Tiny)

++ opi-0.8.2.tar.gz -> opi-0.8.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.8.2/CHANGELOG.md new/opi-0.8.3/CHANGELOG.md
--- old/opi-0.8.2/CHANGELOG.md  2020-05-16 14:11:48.0 +0200
+++ new/opi-0.8.3/CHANGELOG.md  2020-07-25 14:23:24.0 +0200
@@ -7,11 +7,17 @@
 
 ## [Unreleased]
 
+## [0.8.3] - 2020-07-25
+
+### Fixed
+
+- ffmpeg/libav packages due to Packman update
+
 ## [0.8.2] - 2020-05-16
 
 ### Fixed
 
-- Ghost process on XML parsing failure 
[#27](https://github.com/openSUSE-zh/opi/pulls/27)
+- Ghost process on XML parsing failure 
[#27](https://github.com/openSUSE/opi/pulls/27)
 
 ## [0.8.1] - 2020-04-03
 
@@ -23,19 +29,19 @@
 
 ### Changed
 
-- Type number `0` to exit [#26](https://github.com/openSUSE-zh/opi/pulls/26)
+- Type number `0` to exit [#26](https://github.com/openSUSE/opi/pulls/26)
 
 ## [0.7.1]
 
 ### Fixed
 
-- Missing `use File::Temp;` [#24](https://github.com/openSUSE-zh/opi/issues/24)
+- Missing `use File::Temp;` [#24](https://github.com/openSUSE/opi/issues/24)
 
 ## [0.7.0]
 
 ### Changed
 
-- Force repo URL to HTTPS [#22](https://github.com/openSUSE-zh/opi/issues/22)
+- Force repo URL to HTTPS [#22](https://github.com/openSUSE/opi/issues/22)
 
 ### Fixed
 
@@ -45,42 +51,42 @@
 
 ### Added
 
-- Search spinner [#21](https://github.com/openSUSE-zh/opi/issues/21)
+- Search spinner [#21](https://github.com/openSUSE/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)
+- Packman repo doesn't have *.repo file 
[#19](https://github.com/openSUSE/opi/issues/19)
+- Long version numbers are cutted 
[#17](https://github.com/openSUSE/opi/issues/17)
 
 ## [0.5.2]
 
 ### Fixed
 
-- Trim "NAME" and "VERSION" string 
[#13](https://github.com/openSUSE-zh/opi/issues/13)
+- Trim "NAME" and "VERSION" string 
[#13](https://github.com/openSUSE/opi/issues/13)
 
 ## [0.5.1]
 
 ### Fixed
 
-- Fix dependency not found issue 
[#11](https://github.com/openSUSE-zh/opi/issues/11)
+- Fix dependency not found issue 
[#11](https://github.com/openSUSE/opi/issues/11)
 
 ## [0.5.0]
 
 ### Added
 
-- API proxy server to prevent hard-coded passwords in the script 
[#4](https://github.com/openSUSE-zh/opi/issues/4)
+- API proxy server to prevent hard-coded passwords in the script 
[#4](https://github.com/openSUSE/opi/issues/4)
 
 ## [0.4.0]
 
 ### Added
 
-- PMBS (Packman Build Service) support 
[#5](https://github.com/openSUSE-zh/opi/issues/5)
+- PMBS (Packman Build Service) support 
[#5](https://github.com/openSUSE/opi/issues/5)
 
 ## [0.3.2]
 
 ### Fixed
 
-- `opi opi` cannot find `opi` [#9](https://github.com/openSUSE-zh/opi/issues/9)
+- `opi opi` cannot find `opi` [#9](https://github.com/openSUSE/opi/issues/9)
 
 ## [0.3.1]
 
@@ -92,7 +98,7 @@
 
 ### Added
 
-- Support SLE [#8](https://github.com/openSUSE-zh/opi/issues/8)
+- Support SLE [#8](https://github.com/openSUSE/opi/issues/8)
 
 ### Changed
 
@@ -102,16 +108,16 @@
 
 ### Added
 
-- Install Packman Codecs with `opi p

commit opi for openSUSE:Factory

2020-05-16 Thread root
Hello community,

here is the log from the commit of package opi for openSUSE:Factory checked in 
at 2020-05-16 22:28:14

Comparing /work/SRC/openSUSE:Factory/opi (Old)
 and  /work/SRC/openSUSE:Factory/.opi.new.2738 (New)


Package is "opi"

Sat May 16 22:28:14 2020 rev:12 rq:806021 version:0.8.2

Changes:

--- /work/SRC/openSUSE:Factory/opi/opi.changes  2020-04-04 12:26:18.963982783 
+0200
+++ /work/SRC/openSUSE:Factory/.opi.new.2738/opi.changes2020-05-16 
22:28:22.417524246 +0200
@@ -1,0 +2,7 @@
+Sat May 16 12:16:13 UTC 2020 - Yunhe Guo 
+
+- Version 0.8.2
+  * Fixed
+- Ghost process on XML parsing failure
+
+---

Old:

  opi-0.8.1.tar.gz

New:

  opi-0.8.2.tar.gz



Other differences:
--
++ opi.spec ++
--- /var/tmp/diff_new_pack.Zv4z2W/_old  2020-05-16 22:28:23.721526922 +0200
+++ /var/tmp/diff_new_pack.Zv4z2W/_new  2020-05-16 22:28:23.725526931 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   opi
-Version:0.8.1
+Version:0.8.2
 Release:0
 Summary:OBS Package Installer (CLI)
 License:GPL-3.0-only

++ opi-0.8.1.tar.gz -> opi-0.8.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.8.1/CHANGELOG.md new/opi-0.8.2/CHANGELOG.md
--- old/opi-0.8.1/CHANGELOG.md  2020-04-03 09:55:36.0 +0200
+++ new/opi-0.8.2/CHANGELOG.md  2020-05-16 14:11:48.0 +0200
@@ -7,6 +7,12 @@
 
 ## [Unreleased]
 
+## [0.8.2] - 2020-05-16
+
+### Fixed
+
+- Ghost process on XML parsing failure 
[#27](https://github.com/openSUSE-zh/opi/pulls/27)
+
 ## [0.8.1] - 2020-04-03
 
 ### Fixed
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.8.1/opi new/opi-0.8.2/opi
--- old/opi-0.8.1/opi   2020-04-03 09:55:36.0 +0200
+++ new/opi-0.8.2/opi   2020-05-16 14:11:48.0 +0200
@@ -60,28 +60,10 @@
 #
 # Search packages
 #
-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 {
-# kill child process when pressing ctrl + c
-$SIG{'INT'} = sub { kill 'KILL', $pid; exit; };
-# 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";
-}
+print "Searching...\n";
+
+my @obs = search_published_binary('openSUSE', $obs_apiroot, @ARGV);
+my @pmbs = search_published_binary('Packman', $pmbs_apiroot, @ARGV);
 
 my @bins = sort_binaries(@obs, @pmbs);
 my @binary_names = get_binary_names(@bins);
@@ -323,10 +305,13 @@
 my $resp = $ua->request($req);
 if ($resp->is_success) {
 my $message = $resp->decoded_content;
+my @collection = ();
 
-my $dom = XML::LibXML->load_xml(string => $message);
+if ($message =~ /^\s*$/) {
+return @collection;
+}
 
-my @collection = ();
+my $dom = XML::LibXML->load_xml(string => $message);
 
 my $arch = get_architecture();
 




commit opi for openSUSE:Factory

2020-04-04 Thread root
Hello community,

here is the log from the commit of package opi for openSUSE:Factory checked in 
at 2020-04-04 12:25:23

Comparing /work/SRC/openSUSE:Factory/opi (Old)
 and  /work/SRC/openSUSE:Factory/.opi.new.3248 (New)


Package is "opi"

Sat Apr  4 12:25:23 2020 rev:11 rq:791120 version:0.8.1

Changes:

--- /work/SRC/openSUSE:Factory/opi/opi.changes  2020-02-29 21:25:15.534604889 
+0100
+++ /work/SRC/openSUSE:Factory/.opi.new.3248/opi.changes2020-04-04 
12:26:18.963982783 +0200
@@ -1,0 +2,7 @@
+Fri Apr  3 08:02:12 UTC 2020 - Yunhe Guo 
+
+- Version 0.8.1
+  * Fixed
+- OBS limit error when searching php, test, etc.
+
+---

Old:

  opi-0.8.0.tar.gz

New:

  opi-0.8.1.tar.gz



Other differences:
--
++ opi.spec ++
--- /var/tmp/diff_new_pack.nBdlqk/_old  2020-04-04 12:26:20.567984442 +0200
+++ /var/tmp/diff_new_pack.nBdlqk/_new  2020-04-04 12:26:20.567984442 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   opi
-Version:0.8.0
+Version:0.8.1
 Release:0
 Summary:OBS Package Installer (CLI)
 License:GPL-3.0-only

++ opi-0.8.0.tar.gz -> opi-0.8.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.8.0/CHANGELOG.md new/opi-0.8.1/CHANGELOG.md
--- old/opi-0.8.0/CHANGELOG.md  2020-02-29 13:43:04.0 +0100
+++ new/opi-0.8.1/CHANGELOG.md  2020-04-03 09:55:36.0 +0200
@@ -7,6 +7,12 @@
 
 ## [Unreleased]
 
+## [0.8.1] - 2020-04-03
+
+### Fixed
+
+- OBS limit error when searching php, test, etc.
+
 ## [0.8.0]
 
 ### Changed
@@ -117,7 +123,8 @@
 - Choose package and install
 - Keep or remove repository after installation
 
-[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.8.0...HEAD
+[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.8.1...HEAD
+[0.8.1]: https://github.com/openSUSE-zh/opi/compare/v0.8.0...v0.8.1
 [0.8.0]: https://github.com/openSUSE-zh/opi/compare/v0.7.1...v0.8.0
 [0.7.1]: https://github.com/openSUSE-zh/opi/compare/v0.7.0...v0.7.1
 [0.7.0]: https://github.com/openSUSE-zh/opi/compare/v0.6.0...v0.7.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.8.0/opi new/opi-0.8.1/opi
--- old/opi-0.8.0/opi   2020-02-29 13:43:04.0 +0100
+++ new/opi-0.8.1/opi   2020-04-03 09:55:36.0 +0200
@@ -313,7 +313,8 @@
 my $query_string = prepare_query_string(@_);
 my $xpath = "contains-ic(\@name, $query_string) and 
path/project='$distribution'";
 
-my $url = $obs_apiroot . $endpoint . '?match=' . uri_escape($xpath);
+# NOTE limit=0 fix 413 errors when searching php, test, etc.
+my $url = $obs_apiroot . $endpoint . '?match=' . uri_escape($xpath) . 
'&limit=0';
 
 my $proxy_url = $proxy_root . '?obs_api_link=' . uri_escape($url) . 
'&obs_instance=' . $obs_instance;
 




commit opi for openSUSE:Factory

2020-02-29 Thread root
Hello community,

here is the log from the commit of package opi for openSUSE:Factory checked in 
at 2020-02-29 21:24:58

Comparing /work/SRC/openSUSE:Factory/opi (Old)
 and  /work/SRC/openSUSE:Factory/.opi.new.26092 (New)


Package is "opi"

Sat Feb 29 21:24:58 2020 rev:10 rq:780487 version:0.8.0

Changes:

--- /work/SRC/openSUSE:Factory/opi/opi.changes  2019-11-08 15:28:31.127178158 
+0100
+++ /work/SRC/openSUSE:Factory/.opi.new.26092/opi.changes   2020-02-29 
21:25:15.534604889 +0100
@@ -1,0 +2,7 @@
+Sat Feb 29 12:46:19 UTC 2020 - Yunhe Guo 
+
+- Version 0.8.0
+  * Changed
+- Type number 0 to exit
+
+---

Old:

  opi-0.7.1.tar.gz

New:

  opi-0.8.0.tar.gz



Other differences:
--
++ opi.spec ++
--- /var/tmp/diff_new_pack.EvMit0/_old  2020-02-29 21:25:15.982605776 +0100
+++ /var/tmp/diff_new_pack.EvMit0/_new  2020-02-29 21:25:15.986605784 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package opi
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:   opi
-Version:0.7.1
+Version:0.8.0
 Release:0
 Summary:OBS Package Installer (CLI)
 License:GPL-3.0-only

++ opi-0.7.1.tar.gz -> opi-0.8.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.7.1/CHANGELOG.md new/opi-0.8.0/CHANGELOG.md
--- old/opi-0.7.1/CHANGELOG.md  2019-11-08 12:13:54.0 +0100
+++ new/opi-0.8.0/CHANGELOG.md  2020-02-29 13:43:04.0 +0100
@@ -7,6 +7,12 @@
 
 ## [Unreleased]
 
+## [0.8.0]
+
+### Changed
+
+- Type number `0` to exit [#26](https://github.com/openSUSE-zh/opi/pulls/26)
+
 ## [0.7.1]
 
 ### Fixed
@@ -111,7 +117,8 @@
 - Choose package and install
 - Keep or remove repository after installation
 
-[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.7.1...HEAD
+[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.8.0...HEAD
+[0.8.0]: https://github.com/openSUSE-zh/opi/compare/v0.7.1...v0.8.0
 [0.7.1]: https://github.com/openSUSE-zh/opi/compare/v0.7.0...v0.7.1
 [0.7.0]: https://github.com/openSUSE-zh/opi/compare/v0.6.0...v0.7.0
 [0.6.0]: https://github.com/openSUSE-zh/opi/compare/v0.5.2...v0.6.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.7.1/opi new/opi-0.8.0/opi
--- old/opi-0.7.1/opi   2019-11-08 12:13:54.0 +0100
+++ new/opi-0.8.0/opi   2020-02-29 13:43:04.0 +0100
@@ -192,7 +192,7 @@
 my $min = shift;
 my $max = shift;
 my $message = shift;
-print $message || "Choose a number: ";
+print $message || "Choose a number(0 to quit): ";
 my $typed_number = ;
 chomp $typed_number;
 if ($typed_number =~ /^(\d+)$/) {
@@ -201,7 +201,9 @@
 return $typed_number;
 }
 }
-
+if ($typed_number eq 0) {
+exit;
+}
 return type_a_number($min, $max, "Number must be between $min and $max. 
Please try again: ");
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.7.1/proxy/index.php 
new/opi-0.8.0/proxy/index.php
--- old/opi-0.7.1/proxy/index.php   2019-11-08 12:13:54.0 +0100
+++ new/opi-0.8.0/proxy/index.php   2020-02-29 13:43:04.0 +0100
@@ -2,7 +2,6 @@
 
 # Test it with `php -S localhost:8000 index.php`
 
-require __DIR__ . '/vendor/autoload.php';
 require __DIR__ . '/config.php';
 
 # TODO add API rate limits.




commit opi for openSUSE:Factory

2019-11-08 Thread root
Hello community,

here is the log from the commit of package opi for openSUSE:Factory checked in 
at 2019-11-08 15:28:27

Comparing /work/SRC/openSUSE:Factory/opi (Old)
 and  /work/SRC/openSUSE:Factory/.opi.new.2990 (New)


Package is "opi"

Fri Nov  8 15:28:27 2019 rev:9 rq:746561 version:0.7.1

Changes:

--- /work/SRC/openSUSE:Factory/opi/opi.changes  2019-08-30 14:41:50.689418246 
+0200
+++ /work/SRC/openSUSE:Factory/.opi.new.2990/opi.changes2019-11-08 
15:28:31.127178158 +0100
@@ -1,0 +2,7 @@
+Fri Nov  8 11:17:23 UTC 2019 - Yunhe Guo 
+
+- Version 0.7.1
+  * Fixed
+- Missing use File::Temp;
+
+---

Old:

  opi-0.7.0.tar.gz

New:

  opi-0.7.1.tar.gz



Other differences:
--
++ opi.spec ++
--- /var/tmp/diff_new_pack.TXg8Qi/_old  2019-11-08 15:28:31.611178703 +0100
+++ /var/tmp/diff_new_pack.TXg8Qi/_new  2019-11-08 15:28:31.611178703 +0100
@@ -17,7 +17,7 @@
 
 
 Name:   opi
-Version:0.7.0
+Version:0.7.1
 Release:0
 Summary:OBS Package Installer (CLI)
 License:GPL-3.0-only

++ opi-0.7.0.tar.gz -> opi-0.7.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.7.0/CHANGELOG.md new/opi-0.7.1/CHANGELOG.md
--- old/opi-0.7.0/CHANGELOG.md  2019-08-29 19:29:21.0 +0200
+++ new/opi-0.7.1/CHANGELOG.md  2019-11-08 12:13:54.0 +0100
@@ -7,6 +7,12 @@
 
 ## [Unreleased]
 
+## [0.7.1]
+
+### Fixed
+
+- Missing `use File::Temp;` [#24](https://github.com/openSUSE-zh/opi/issues/24)
+
 ## [0.7.0]
 
 ### Changed
@@ -105,7 +111,8 @@
 - Choose package and install
 - Keep or remove repository after installation
 
-[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.7.0...HEAD
+[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.7.1...HEAD
+[0.7.1]: https://github.com/openSUSE-zh/opi/compare/v0.7.0...v0.7.1
 [0.7.0]: https://github.com/openSUSE-zh/opi/compare/v0.6.0...v0.7.0
 [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
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.7.0/opi new/opi-0.7.1/opi
--- old/opi-0.7.0/opi   2019-08-29 19:29:21.0 +0200
+++ new/opi-0.7.1/opi   2019-11-08 12:13:54.0 +0100
@@ -2,7 +2,6 @@
 #
 # OPI - openSUSE Build Service Package Installer
 #
-# Version:0.1.0
 # Author: Guo Yunhe
 # Website:https://github.com/openSUSE-zh/opi
 # License:GPL-3.0
@@ -15,7 +14,7 @@
 use Config;
 use Config::Tiny;
 use Term::ANSIColor;
-
+use File::Temp;
 
 #
 # Check command line arguments




commit opi for openSUSE:Factory

2019-08-30 Thread root
Hello community,

here is the log from the commit of package opi for openSUSE:Factory checked in 
at 2019-08-30 14:41:47

Comparing /work/SRC/openSUSE:Factory/opi (Old)
 and  /work/SRC/openSUSE:Factory/.opi.new.7948 (New)


Package is "opi"

Fri Aug 30 14:41:47 2019 rev:8 rq:727073 version:0.7.0

Changes:

--- /work/SRC/openSUSE:Factory/opi/opi.changes  2019-08-19 21:42:08.792281541 
+0200
+++ /work/SRC/openSUSE:Factory/.opi.new.7948/opi.changes2019-08-30 
14:41:50.689418246 +0200
@@ -1,0 +2,9 @@
+Thu Aug 29 17:32:59 UTC 2019 - Yunhe Guo 
+
+- Version 0.7.0
+  * Changed
+- Force repo URL to HTTPS
+  * Fixed
+- Ctrl + C handling of spinner
+
+---

Old:

  opi-0.6.0.tar.gz

New:

  opi-0.7.0.tar.gz



Other differences:
--
++ opi.spec ++
--- /var/tmp/diff_new_pack.Y7fvty/_old  2019-08-30 14:41:51.325418181 +0200
+++ /var/tmp/diff_new_pack.Y7fvty/_new  2019-08-30 14:41:51.329418180 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   opi
-Version:0.6.0
+Version:0.7.0
 Release:0
 Summary:OBS Package Installer (CLI)
 License:GPL-3.0-only

++ opi-0.6.0.tar.gz -> opi-0.7.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.6.0/CHANGELOG.md new/opi-0.7.0/CHANGELOG.md
--- old/opi-0.6.0/CHANGELOG.md  2019-08-19 00:48:48.0 +0200
+++ new/opi-0.7.0/CHANGELOG.md  2019-08-29 19:29:21.0 +0200
@@ -7,6 +7,16 @@
 
 ## [Unreleased]
 
+## [0.7.0]
+
+### Changed
+
+- Force repo URL to HTTPS [#22](https://github.com/openSUSE-zh/opi/issues/22)
+
+### Fixed
+
+- Ctrl + C handling of spinner
+
 ## [0.6.0]
 
 ### Added
@@ -95,7 +105,8 @@
 - Choose package and install
 - Keep or remove repository after installation
 
-[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.6.0...HEAD
+[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.7.0...HEAD
+[0.7.0]: https://github.com/openSUSE-zh/opi/compare/v0.6.0...v0.7.0
 [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
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.6.0/opi new/opi-0.7.0/opi
--- old/opi-0.6.0/opi   2019-08-19 00:48:48.0 +0200
+++ new/opi-0.7.0/opi   2019-08-29 19:29:21.0 +0200
@@ -14,7 +14,6 @@
 use URI::Escape;
 use Config;
 use Config::Tiny;
-use File::Temp qw/ tempfile tempdir /;
 use Term::ANSIColor;
 
 
@@ -23,13 +22,15 @@
 #
 unless (scalar @ARGV) {
 print "Please specify query keywords. For example:\n";
-print "opi pcsx2\n";
+print "\topi pcsx2\n";
 exit 1;
 }
 
 #
 # Check for packages not from OBS
 #
+
+# 'vs code' --> 'vscode'
 my $serialized_query = lc(join('', @ARGV));
 
 # Check Packman Codecs
@@ -73,6 +74,8 @@
 }
 }
 else {
+# kill child process when pressing ctrl + c
+$SIG{'INT'} = sub { kill 'KILL', $pid; exit; };
 # parent process do request
 @obs = search_published_binary('openSUSE', $obs_apiroot, @ARGV);
 @pmbs = search_published_binary('Packman', $pmbs_apiroot, @ARGV);
@@ -499,6 +502,8 @@
 my $repo_url = 
"https://download.opensuse.org/repositories/$project/$repository/";;
 my $repo_file = "$repo_url/$project.repo";
 system "sudo zypper addrepo --refresh $repo_file";
+# Change http:// to https://
+system "sudo sed -i 
's~http://download.opensuse.org~https://download.opensuse.org~g' 
/etc/zypp/repos.d/*";
 system "sudo zypper refresh";
 my $install_options = "--allow-vendor-change --allow-arch-change 
--allow-downgrade --allow-name-change";
 $project =~ s/:/_/ig;




commit opi for openSUSE:Factory

2019-08-19 Thread root
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 
+
+- 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 
+
+- 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.0 +0200
+++ new/opi-0.6.0/CHANGELOG.md  2019-08-19 00:48:48.0 +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.0 +0200
+++ new/opi-0.6.0/README.md 2019-08-19 00:48:48.0 +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   20

commit opi for openSUSE:Factory

2019-06-12 Thread root
Hello community,

here is the log from the commit of package opi for openSUSE:Factory checked in 
at 2019-06-12 13:16:37

Comparing /work/SRC/openSUSE:Factory/opi (Old)
 and  /work/SRC/openSUSE:Factory/.opi.new.4811 (New)


Package is "opi"

Wed Jun 12 13:16:37 2019 rev:6 rq:709064 version:0.5.2

Changes:

--- /work/SRC/openSUSE:Factory/opi/opi.changes  2019-06-03 18:58:50.796351491 
+0200
+++ /work/SRC/openSUSE:Factory/.opi.new.4811/opi.changes2019-06-12 
13:16:51.784655369 +0200
@@ -1,0 +2,7 @@
+Tue Jun 11 07:27:45 UTC 2019 - Yunhe Guo 
+
+- Version 0.5.2
+  * Fixed
+- Trim "NAME" and "VERSION" string
+
+---

Old:

  opi-0.5.1.tar.gz

New:

  opi-0.5.2.tar.gz



Other differences:
--
++ opi.spec ++
--- /var/tmp/diff_new_pack.OCx6Dm/_old  2019-06-12 13:16:52.396654727 +0200
+++ /var/tmp/diff_new_pack.OCx6Dm/_new  2019-06-12 13:16:52.396654727 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   opi
-Version:0.5.1
+Version:0.5.2
 Release:0
 Summary:OBS Package Installer (CLI)
 License:GPL-3.0

++ opi-0.5.1.tar.gz -> opi-0.5.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.5.1/CHANGELOG.md new/opi-0.5.2/CHANGELOG.md
--- old/opi-0.5.1/CHANGELOG.md  2019-06-03 11:10:03.0 +0200
+++ new/opi-0.5.2/CHANGELOG.md  2019-06-11 09:24:59.0 +0200
@@ -7,6 +7,12 @@
 
 ## [Unreleased]
 
+## [0.5.2]
+
+### Fixed
+
+- Trim "NAME" and "VERSION" string 
[#13](https://github.com/openSUSE-zh/opi/issues/13)
+
 ## [0.5.1]
 
 ### Fixed
@@ -78,7 +84,8 @@
 - Choose package and install
 - Keep or remove repository after installation
 
-[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.5.1...HEAD
+[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.5.2...HEAD
+[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
 [0.4.0]: https://github.com/openSUSE-zh/opi/compare/v0.3.2...v0.4.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.5.1/opi new/opi-0.5.2/opi
--- old/opi-0.5.1/opi   2019-06-03 11:10:03.0 +0200
+++ new/opi-0.5.2/opi   2019-06-11 09:24:59.0 +0200
@@ -117,14 +117,20 @@
 
 =cut
 
+sub trim {
+my $s = shift;
+$s =~ s/^\s+|\s+$//g;
+return $s
+}
+
 sub get_distribution {
 my $prefix = shift;
 my $config = Config::Tiny->read('/etc/os-release');
 my $name = $config->{_}->{NAME};
 my $version = $config->{_}->{VERSION};
-$name = substr $name, 1, -1; # Remove quotes
+$name = trim(substr($name, 1, -1)); # Remove quotes and trailing spaces
 if ($version) {
-$version = substr $version, 1, -1; # Remove quotes
+$version = trim(substr($version, 1, -1)); # Remove quotes
 }
 if ($name eq 'openSUSE Tumbleweed') {
 $name = 'openSUSE:Factory';
Binary files old/opi-0.5.1/screenshot.png and new/opi-0.5.2/screenshot.png 
differ




commit opi for openSUSE:Factory

2019-06-03 Thread root
Hello community,

here is the log from the commit of package opi for openSUSE:Factory checked in 
at 2019-06-03 18:58:33

Comparing /work/SRC/openSUSE:Factory/opi (Old)
 and  /work/SRC/openSUSE:Factory/.opi.new.5148 (New)


Package is "opi"

Mon Jun  3 18:58:33 2019 rev:5 rq:707221 version:0.5.1

Changes:

--- /work/SRC/openSUSE:Factory/opi/opi.changes  2019-05-24 11:30:11.749424845 
+0200
+++ /work/SRC/openSUSE:Factory/.opi.new.5148/opi.changes2019-06-03 
18:58:50.796351491 +0200
@@ -1,0 +2,7 @@
+Mon Jun  3 14:28:56 UTC 2019 - Yunhe Guo 
+
+- Version 0.5.1
+  * Fixed
+- Fix dependency not found issue
+
+---

Old:

  opi-0.5.0.tar.gz

New:

  opi-0.5.1.tar.gz



Other differences:
--
++ opi.spec ++
--- /var/tmp/diff_new_pack.uBjmt5/_old  2019-06-03 18:58:51.232351330 +0200
+++ /var/tmp/diff_new_pack.uBjmt5/_new  2019-06-03 18:58:51.236351328 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   opi
-Version:0.5.0
+Version:0.5.1
 Release:0
 Summary:OBS Package Installer (CLI)
 License:GPL-3.0

++ opi-0.5.0.tar.gz -> opi-0.5.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.5.0/.github/FUNDING.yml 
new/opi-0.5.1/.github/FUNDING.yml
--- old/opi-0.5.0/.github/FUNDING.yml   1970-01-01 01:00:00.0 +0100
+++ new/opi-0.5.1/.github/FUNDING.yml   2019-06-03 11:10:03.0 +0200
@@ -0,0 +1,9 @@
+# These are supported funding model platforms
+
+github: [guoyunhe]
+patreon: guoyunhe
+open_collective: # Replace with a single Open Collective username
+ko_fi: # Replace with a single Ko-fi username
+tidelift: # Replace with a single Tidelift platform-name/package-name e.g., 
npm/babel
+community_bridge: # Replace with a single Community Bridge project-name e.g., 
cloud-foundry
+custom: # Replace with a single custom sponsorship URL
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.5.0/CHANGELOG.md new/opi-0.5.1/CHANGELOG.md
--- old/opi-0.5.0/CHANGELOG.md  2019-05-22 15:07:16.0 +0200
+++ new/opi-0.5.1/CHANGELOG.md  2019-06-03 11:10:03.0 +0200
@@ -7,6 +7,12 @@
 
 ## [Unreleased]
 
+## [0.5.1]
+
+### Fixed
+
+- Fix dependency not found issue 
[#11](https://github.com/openSUSE-zh/opi/issues/11)
+
 ## [0.5.0]
 
 ### Added
@@ -72,7 +78,8 @@
 - Choose package and install
 - Keep or remove repository after installation
 
-[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.5.0...HEAD
+[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.5.1...HEAD
+[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
 [0.4.0]: https://github.com/openSUSE-zh/opi/compare/v0.3.2...v0.4.0
 [0.3.2]: https://github.com/openSUSE-zh/opi/compare/v0.3.1...v0.3.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.5.0/opi new/opi-0.5.1/opi
--- old/opi-0.5.0/opi   2019-05-22 15:07:16.0 +0200
+++ new/opi-0.5.1/opi   2019-06-03 11:10:03.0 +0200
@@ -477,7 +477,7 @@
 system "sudo zypper refresh";
 my $install_options = "--allow-vendor-change --allow-arch-change 
--allow-downgrade --allow-name-change";
 $project =~ s/:/_/ig;
-system "sudo zypper install $install_options --repo $project 
$name.$arch";
+system "sudo zypper install $install_options --from $project 
$name.$arch";
 
 ask_keep_repo( $project );
 }
@@ -527,7 +527,7 @@
 
 sub install_packman_packages {
 my $packages = join ' ', @_;
-system "sudo zypper install --repo packman $packages";
+system "sudo zypper install --from packman $packages";
 }
 
 sub install_vs_code {




commit opi for openSUSE:Factory

2019-05-24 Thread root
Hello community,

here is the log from the commit of package opi for openSUSE:Factory checked in 
at 2019-05-24 11:30:05

Comparing /work/SRC/openSUSE:Factory/opi (Old)
 and  /work/SRC/openSUSE:Factory/.opi.new.5148 (New)


Package is "opi"

Fri May 24 11:30:05 2019 rev:4 rq:704744 version:0.5.0

Changes:

--- /work/SRC/openSUSE:Factory/opi/opi.changes  2019-05-10 09:19:39.732452900 
+0200
+++ /work/SRC/openSUSE:Factory/.opi.new.5148/opi.changes2019-05-24 
11:30:11.749424845 +0200
@@ -1,0 +2,14 @@
+Wed May 22 13:09:33 UTC 2019 - Yunhe Guo 
+
+- Version 0.5.0
+  * Added
+- API proxy server to prevent hard-coded passwords in the script
+
+---
+Tue May 21 11:58:53 UTC 2019 - Yunhe Guo 
+
+- Version 0.4.0
+  * Added
+- PMBS (Packman Build Service) support
+
+---

Old:

  opi-0.3.2.tar.gz

New:

  opi-0.5.0.tar.gz



Other differences:
--
++ opi.spec ++
--- /var/tmp/diff_new_pack.SNh5UY/_old  2019-05-24 11:30:12.429424670 +0200
+++ /var/tmp/diff_new_pack.SNh5UY/_new  2019-05-24 11:30:12.433424669 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   opi
-Version:0.3.2
+Version:0.5.0
 Release:0
 Summary:OBS Package Installer (CLI)
 License:GPL-3.0

++ opi-0.3.2.tar.gz -> opi-0.5.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.3.2/CHANGELOG.md new/opi-0.5.0/CHANGELOG.md
--- old/opi-0.3.2/CHANGELOG.md  2019-05-09 13:19:14.0 +0200
+++ new/opi-0.5.0/CHANGELOG.md  2019-05-22 15:07:16.0 +0200
@@ -7,6 +7,18 @@
 
 ## [Unreleased]
 
+## [0.5.0]
+
+### Added
+
+- API proxy server to prevent hard-coded passwords in the script 
[#4](https://github.com/openSUSE-zh/opi/issues/4)
+
+## [0.4.0]
+
+### Added
+
+- PMBS (Packman Build Service) support 
[#5](https://github.com/openSUSE-zh/opi/issues/5)
+
 ## [0.3.2]
 
 ### Fixed
@@ -60,7 +72,9 @@
 - Choose package and install
 - Keep or remove repository after installation
 
-[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.3.2...HEAD
+[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.5.0...HEAD
+[0.5.0]: https://github.com/openSUSE-zh/opi/compare/v0.4.0...v0.5.0
+[0.4.0]: https://github.com/openSUSE-zh/opi/compare/v0.3.2...v0.4.0
 [0.3.2]: https://github.com/openSUSE-zh/opi/compare/v0.3.1...v0.3.2
 [0.3.1]: https://github.com/openSUSE-zh/opi/compare/v0.3.0...v0.3.1
 [0.3.0]: https://github.com/openSUSE-zh/opi/compare/v0.2.0...v0.3.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.3.2/README.md new/opi-0.5.0/README.md
--- old/opi-0.3.2/README.md 2019-05-09 13:19:14.0 +0200
+++ new/opi-0.5.0/README.md 2019-05-22 15:07:16.0 +0200
@@ -2,6 +2,11 @@
 
 **O**BS **P**ackage **I**nstaller
 
+Search and install almost all packages available for openSUSE and SLE:
+
+1. openSUSE Build Service
+2. Packman
+
 ## System Requirements
 
 - openSUSE Tumbleweed, openSUSE Leap 42.1+, SLE 12+
@@ -13,8 +18,24 @@
 
 ## Install
 
+### openSUSE Tumbleweed
+
+```
+sudo zypper install opi
 ```
-sudo zypper addrepo 
https://download.opensuse.org/repositories/home:guoyunhe/openSUSE_Tumbleweed/home:guoyunhe.repo
+
+## Leap and SLE
+
+```
+# Leap 15.0
+sudo zypper addrepo 
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
+# Leap 42.3
+sudo zypper addrepo 
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 refresh
 sudo zypper install opi
 ```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.3.2/opi new/opi-0.5.0/opi
--- old/opi-0.3.2/opi   2019-05-09 13:19:14.0 +0200
+++ new/opi-0.5.0/opi   2019-05-22 15:07:16.0 +0200
@@ -54,15 +54,15 @@
 #
 # API configuration
 #
-my $username = 'wiki_hermes';
-my $password = 'w_h_p1';
-my $server = "https://$username:$password\@api.opensuse.org";;
-
+my $obs_apiroot = 'https://api.opensuse.org';
+my $pmbs_apiroot = 'https://pmbs.links2linux.de';
 
 #
 # Search packages
 #
-my @bins = search_published_binary(@ARGV);
+my @obs = search_published_binary('openSUSE', $obs_apiroot, @ARGV);
+my @pmbs = search_published_binary('Packman', $pmbs_apiroot, @ARGV);
+my @bins = sort_binaries(@obs, @pmbs);
 my @binary_names = get_binary_names(@bins);
 
 if (!scalar(@bins)) {

commit opi for openSUSE:Factory

2019-05-10 Thread root
Hello community,

here is the log from the commit of package opi for openSUSE:Factory checked in 
at 2019-05-10 09:19:38

Comparing /work/SRC/openSUSE:Factory/opi (Old)
 and  /work/SRC/openSUSE:Factory/.opi.new.5148 (New)


Package is "opi"

Fri May 10 09:19:38 2019 rev:3 rq:701786 version:0.3.2

Changes:

--- /work/SRC/openSUSE:Factory/opi/opi.changes  2019-05-05 21:21:27.637283931 
+0200
+++ /work/SRC/openSUSE:Factory/.opi.new.5148/opi.changes2019-05-10 
09:19:39.732452900 +0200
@@ -1,0 +2,23 @@
+Thu May  9 11:21:50 UTC 2019 - Yunhe Guo 
+
+- Version 0.3.1
+  * Fixed
+- `opi opi` cannot find `opi`
+
+---
+Thu May  9 06:46:48 UTC 2019 - Yunhe Guo 
+
+- Version 0.3.1
+  * Fixed
+- Remove quotes from version number. So Leap and SLE can search packages.
+
+---
+Wed May  8 20:57:51 UTC 2019 - Yunhe Guo 
+
+- Version 0.3.0
+  * Added
+- Support SLE
+  * Changed
+- Better print column alignment
+
+---

Old:

  opi-0.2.0.tar.gz

New:

  opi-0.3.2.tar.gz



Other differences:
--
++ opi.spec ++
--- /var/tmp/diff_new_pack.vnygCn/_old  2019-05-10 09:19:40.176453587 +0200
+++ /var/tmp/diff_new_pack.vnygCn/_new  2019-05-10 09:19:40.176453587 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   opi
-Version:0.2.0
+Version:0.3.2
 Release:0
 Summary:OBS Package Installer (CLI)
 License:GPL-3.0

++ opi-0.2.0.tar.gz -> opi-0.3.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.2.0/CHANGELOG.md new/opi-0.3.2/CHANGELOG.md
--- old/opi-0.2.0/CHANGELOG.md  2019-05-03 13:08:23.0 +0200
+++ new/opi-0.3.2/CHANGELOG.md  2019-05-09 13:19:14.0 +0200
@@ -7,6 +7,28 @@
 
 ## [Unreleased]
 
+## [0.3.2]
+
+### Fixed
+
+- `opi opi` cannot find `opi` [#9](https://github.com/openSUSE-zh/opi/issues/9)
+
+## [0.3.1]
+
+### Fixed
+
+- Remove quotes from version number. So Leap and SLE can search packages.
+
+## [0.3.0]
+
+### Added
+
+- Support SLE [#8](https://github.com/openSUSE-zh/opi/issues/8)
+
+### Changed
+
+- Better print column alignment
+
 ## [0.2.0]
 
 ### Added
@@ -38,8 +60,11 @@
 - Choose package and install
 - Keep or remove repository after installation
 
-[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.2.0...HEAD
-[0.1.2]: https://github.com/openSUSE-zh/opi/compare/v0.1.2...v0.2.0
+[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.3.2...HEAD
+[0.3.2]: https://github.com/openSUSE-zh/opi/compare/v0.3.1...v0.3.2
+[0.3.1]: https://github.com/openSUSE-zh/opi/compare/v0.3.0...v0.3.1
+[0.3.0]: https://github.com/openSUSE-zh/opi/compare/v0.2.0...v0.3.0
+[0.2.0]: https://github.com/openSUSE-zh/opi/compare/v0.1.2...v0.2.0
 [0.1.2]: https://github.com/openSUSE-zh/opi/compare/v0.1.1...v0.1.2
 [0.1.1]: https://github.com/openSUSE-zh/opi/compare/v0.1.0...v0.1.1
 [0.1.0]: https://github.com/openSUSE-zh/opi/releases/tag/v0.1.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.2.0/opi new/opi-0.3.2/opi
--- old/opi-0.2.0/opi   2019-05-03 13:08:23.0 +0200
+++ new/opi-0.3.2/opi   2019-05-09 13:19:14.0 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env perl
+#!/usr/bin/perl
 #
 # OPI - openSUSE Build Service Package Installer
 #
@@ -73,17 +73,12 @@
 #
 # Print package name options
 #
-my $i = 1;
-foreach my $n (@binary_names) {
-print "$i. $n\n";
-$i++;
-}
+print_package_names(@binary_names);
 
 
 #
 # Select a package name option
 #
-print "Choose a number: ";
 my $selected_name_number = type_a_number(1, scalar(@binary_names));
 my $selected_name = $binary_names[$selected_name_number - 1];
 
@@ -95,18 +90,12 @@
 #
 # Print binary package options
 #
-$i = 1;
-foreach my $b (@binary_options) {
-print_binary_option($b, $i);
-print "\n";
-$i++;
-}
+print_binary_options(@binary_options);
 
 
 #
 # Select a binary package option
 #
-print "Choose a number: ";
 my $selected_binary_number = type_a_number(1, scalar(@binary_options));
 
 my $selected_binary = $binary_options[$selected_binary_number - 1];
@@ -121,15 +110,27 @@
 #
 install_binary($selected_binary);
 
+
+=begin functions
+
+Get system information
+
+=cut
+
 sub get_distribution {
 my $config = Config::Tiny->read('/etc/os-release');
 my $name = $config->{_}->{NAME};
 my $version = $config->{_}->{VERSION};
 $name = substr $name, 1, -1; # Remove quotes
+if ($version) {
+$version = substr $version, 1, -1; # Remove quotes
+}
 if ($name eq 'openSUSE Tumbleweed') {
 return 'openSUSE:F

commit opi for openSUSE:Factory

2019-05-05 Thread root
Hello community,

here is the log from the commit of package opi for openSUSE:Factory checked in 
at 2019-05-05 21:21:22

Comparing /work/SRC/openSUSE:Factory/opi (Old)
 and  /work/SRC/openSUSE:Factory/.opi.new.5148 (New)


Package is "opi"

Sun May  5 21:21:22 2019 rev:2 rq:700365 version:0.2.0

Changes:

--- /work/SRC/openSUSE:Factory/opi/opi.changes  2019-04-30 13:06:43.741553098 
+0200
+++ /work/SRC/openSUSE:Factory/.opi.new.5148/opi.changes2019-05-05 
21:21:27.637283931 +0200
@@ -1,0 +2,9 @@
+Fri May  3 11:10:35 UTC 2019 - Yunhe Guo 
+
+- Version 0.2.0
+  * Added
+- Install Packman Codecs with `opi packman` or `opi codecs`
+- Install Skype with `opi skype`
+- Install VS Code with `opi vs code`
+
+---

Old:

  opi-0.1.2.tar.gz

New:

  opi-0.2.0.tar.gz



Other differences:
--
++ opi.spec ++
--- /var/tmp/diff_new_pack.B3hqk9/_old  2019-05-05 21:21:28.205285478 +0200
+++ /var/tmp/diff_new_pack.B3hqk9/_new  2019-05-05 21:21:28.205285478 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   opi
-Version:0.1.2
+Version:0.2.0
 Release:0
 Summary:OBS Package Installer (CLI)
 License:GPL-3.0

++ opi-0.1.2.tar.gz -> opi-0.2.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.1.2/CHANGELOG.md new/opi-0.2.0/CHANGELOG.md
--- old/opi-0.1.2/CHANGELOG.md  2019-04-29 20:35:48.0 +0200
+++ new/opi-0.2.0/CHANGELOG.md  2019-05-03 13:08:23.0 +0200
@@ -7,6 +7,14 @@
 
 ## [Unreleased]
 
+## [0.2.0]
+
+### Added
+
+- Install Packman Codecs with `opi packman` or `opi codecs` 
[#6](https://github.com/openSUSE-zh/opi/issues/6)
+- Install Skype with `opi skype` 
[#6](https://github.com/openSUSE-zh/opi/issues/6)
+- Install VS Code with `opi vs code` 
[#6](https://github.com/openSUSE-zh/opi/issues/6)
+
 ## [0.1.2]
 
 ### Fixed
@@ -30,7 +38,8 @@
 - Choose package and install
 - Keep or remove repository after installation
 
-[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.1.2...HEAD
+[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.2.0...HEAD
+[0.1.2]: https://github.com/openSUSE-zh/opi/compare/v0.1.2...v0.2.0
 [0.1.2]: https://github.com/openSUSE-zh/opi/compare/v0.1.1...v0.1.2
 [0.1.1]: https://github.com/openSUSE-zh/opi/compare/v0.1.0...v0.1.1
 [0.1.0]: https://github.com/openSUSE-zh/opi/releases/tag/v0.1.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.1.2/README.md new/opi-0.2.0/README.md
--- old/opi-0.1.2/README.md 2019-04-29 20:35:48.0 +0200
+++ new/opi-0.2.0/README.md 2019-05-03 13:08:23.0 +0200
@@ -30,3 +30,27 @@
 Output:
 
 ![Screenshot](screenshot.png)
+
+### Packages from Other Repositories
+
+**Packman Codecs** (enable you to play MP4 videos and YouTube)
+
+```
+opi packman
+
+# or
+
+opi codecs
+```
+
+**Skype**
+
+```
+opi skype
+```
+
+**Visual Studio Code**
+
+```
+opi vs code
+```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.1.2/opi new/opi-0.2.0/opi
--- old/opi-0.1.2/opi   2019-04-29 20:35:48.0 +0200
+++ new/opi-0.2.0/opi   2019-05-03 13:08:23.0 +0200
@@ -6,9 +6,6 @@
 # Author: Guo Yunhe
 # Website:https://github.com/openSUSE-zh/opi
 # License:GPL-3.0
-#
-# Created at: 2019-04-25
-# Updated at: 2019-04-29
 
 use strict;
 use warnings;
@@ -17,6 +14,7 @@
 use URI::Escape;
 use Config;
 use Config::Tiny;
+use File::Temp qw/ tempfile tempdir /;
 use Term::ANSIColor;
 
 
@@ -29,6 +27,29 @@
 exit 1;
 }
 
+#
+# Check for packages not from OBS
+#
+my $serialized_query = lc(join('', @ARGV));
+
+# Check Packman Codecs
+if ( $serialized_query =~ m/(packman|codec)/ ) {
+install_packman_codecs();
+exit;
+}
+
+# Check VS Code
+if ( $serialized_query =~ m/(visualstudiocode|vscode|vsc)/ ) {
+install_vs_code();
+exit;
+}
+
+# Check Skype
+if ($serialized_query =~ m/skype/ ) {
+install_skype();
+exit;
+}
+
 
 #
 # API configuration
@@ -242,7 +263,7 @@
 }
 else {
 if ($resp->code == 413) {
-print "Please use different search keywords. Some short keywords 
cause OBS timeout.";
+print "Please use different search keywords. Some short keywords 
cause OBS timeout.\n";
 } else {
 print "Network error. Please try later. (Error message: ", 
$resp->message, ")\n";
 }
@@ -318,6 +339,34 @@
 return @filtered_binary_list;
 }
 
+
+sub ask_yes_or_no {
+print $_[0];
+
+if (lc($_[1]) eq 'y') {
+print '(Y/n) ';
+} else {
+print '(y/N) ';
+}
+
+my $yes_no = ;
+chomp $yes_no;
+$ye