Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package opi for openSUSE:Factory checked in 
at 2021-01-18 11:29:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/opi (Old)
 and      /work/SRC/openSUSE:Factory/.opi.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "opi"

Mon Jan 18 11:29:19 2021 rev:16 rq:863812 version:0.10.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/opi/opi.changes  2020-11-02 10:36:54.319317767 
+0100
+++ /work/SRC/openSUSE:Factory/.opi.new.28504/opi.changes       2021-01-18 
11:33:30.792953865 +0100
@@ -1,0 +2,8 @@
+Sun Jan 17 07:57:22 UTC 2021 - Yunhe Guo <i...@guoyunhe.me>
+
+- Version 0.10.0
+  * Added
+    - Microsoft Teams installer
+    - Warning for personal repository
+
+-------------------------------------------------------------------

Old:
----
  opi-0.9.0.tar.gz

New:
----
  opi-0.10.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ opi.spec ++++++
--- /var/tmp/diff_new_pack.CcoVUM/_old  2021-01-18 11:33:31.420954972 +0100
+++ /var/tmp/diff_new_pack.CcoVUM/_new  2021-01-18 11:33:31.424954979 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package opi
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 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.9.0
+Version:        0.10.0
 Release:        0
 Summary:        OBS Package Installer (CLI)
 License:        GPL-3.0-only

++++++ opi-0.9.0.tar.gz -> opi-0.10.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.9.0/CHANGELOG.md new/opi-0.10.0/CHANGELOG.md
--- old/opi-0.9.0/CHANGELOG.md  2020-10-03 15:48:17.000000000 +0200
+++ new/opi-0.10.0/CHANGELOG.md 2021-01-17 08:25:43.000000000 +0100
@@ -7,7 +7,14 @@
 
 ## [Unreleased]
 
-## [0.9.0]
+## [0.10.0] - 2021-01-17
+
+### Added
+
+- Microsoft Teams installer [#34](https://github.com/openSUSE/opi/pulls/34)
+- Warning for personal repository 
[#35](https://github.com/openSUSE/opi/pulls/35)
+
+## [0.9.0] - 2020-10-03
 
 ### Added
 
@@ -15,7 +22,7 @@
 
 ### Changed
 
-- Filter out -devel, -docs and -lang packages 
[#30](https://github.com/openSUSE/opi/pulls/27)
+- Filter out -devel, -docs and -lang packages 
[#30](https://github.com/openSUSE/opi/pulls/30)
 - Don't show i586 packages on x86_64 system
 
 ## [0.8.3] - 2020-07-25
@@ -128,7 +135,7 @@
 ### Fixed
 
 - Fixed lost of "noarch" packages 
[#3](https://github.com/openSUSE/opi/issues/3)
-- Be able to search with dashes in keywords 
[#2](https://github.com/openSUSE/opi/issues/3)
+- Be able to search with dashes in keywords 
[#2](https://github.com/openSUSE/opi/issues/2)
 
 ## [0.1.1]
 
@@ -146,7 +153,8 @@
 - Choose package and install
 - Keep or remove repository after installation
 
-[Unreleased]: https://github.com/openSUSE/opi/compare/v0.9.0...HEAD
+[Unreleased]: https://github.com/openSUSE/opi/compare/v0.10.0...HEAD
+[0.10.0]: https://github.com/openSUSE/opi/compare/v0.9.0...v0.10.0
 [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
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.9.0/README.md new/opi-0.10.0/README.md
--- old/opi-0.9.0/README.md     2020-10-03 15:48:17.000000000 +0200
+++ new/opi-0.10.0/README.md    2021-01-17 08:25:43.000000000 +0100
@@ -6,6 +6,7 @@
 
 1. openSUSE Build Service
 2. Packman
+3. Popular packages for Microsoft and other vendors
 
 ## System Requirements
 
@@ -75,3 +76,9 @@
 ```
 opi vs code
 ```
+
+**Miscrosoft Teams**
+
+```
+opi teams
+```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.9.0/opi new/opi-0.10.0/opi
--- old/opi-0.9.0/opi   2020-10-03 15:48:17.000000000 +0200
+++ new/opi-0.10.0/opi  2021-01-17 08:25:43.000000000 +0100
@@ -1,10 +1,16 @@
 #!/usr/bin/perl
-#
+# 
==============================================================================
 # OPI - openSUSE Build Service Package Installer
 #
-# Author:     Guo Yunhe
+# Authors:    Guo Yunhe <i...@guoyunhe.me>
 # Website:    https://github.com/openSUSE/opi
 # License:    GPL-3.0
+# 
==============================================================================
+
+
+# 
------------------------------------------------------------------------------
+# import packages
+# 
------------------------------------------------------------------------------
 
 use strict;
 use warnings;
@@ -16,6 +22,11 @@
 use Term::ANSIColor;
 use File::Temp;
 
+
+# 
------------------------------------------------------------------------------
+# define global variables
+# 
------------------------------------------------------------------------------
+
 my $version_number = '0.9.0';
 
 my $help_text = <<'END_HELP';
@@ -29,56 +40,56 @@
 
 END_HELP
 
-#
-# Check command line arguments
-#
+my $obs_apiroot = 'https://api.opensuse.org';
+my $pmbs_apiroot = 'https://pmbs.links2linux.de';
+
+
+# 
------------------------------------------------------------------------------
+# parse command arguments
+# 
------------------------------------------------------------------------------
+
+# if no arguments given, show help
 unless (scalar @ARGV) {
     print $help_text;
     exit 1;
 }
 
+# show help text
 if ($ARGV[0] eq '--help' || $ARGV[0] eq '-h') {
     print $help_text;
     exit;
 }
 
+# show version number
 if ($ARGV[0] eq '--version' || $ARGV[0] eq '-v') {
     print $version_number . "\n";
     exit;
 }
 
-
-#
 # Check for packages not from OBS
-#
 
 # 'vs code' --> 'vscode'
 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
-#
-my $obs_apiroot = 'https://api.opensuse.org';
-my $pmbs_apiroot = 'https://pmbs.links2linux.de';
+if ( $serialized_query =~ m/(microsoftteams|msteams|teams)/ ) {
+    install_ms_teams();
+    exit;
+}
 
 #
 # Search packages
@@ -118,7 +129,6 @@
 #
 print_binary_options(@binary_options);
 
-
 #
 # Select a binary package option
 #
@@ -129,7 +139,9 @@
 print "You have selected binary package: ";
 print_binary_option($selected_binary);
 print "\n";
-
+if (is_personal_project($selected_binary->{project})) {
+    print colored("BE CAREFUL! The package is from a personal repository and 
NOT reviewed by others.\nYou can ask the author to submit the package to 
development projects and openSUSE:Factory.\nLearn more at 
https://en.opensuse.org/openSUSE:How_to_contribute_to_Factory\n";, 'red');
+}
 
 #
 # Install selected package
@@ -589,3 +601,20 @@
 
     exit;
 }
+
+sub install_ms_teams {
+    unless ( ask_yes_or_no("Do you want to install Teams from Microsoft 
repository? ", 'y') ) {
+        return;
+    }
+
+    my $tmp_fh = new File::Temp( UNLINK => 1 );
+    print $tmp_fh "[ms-teams]\nname=Microsoft 
Teams\nbaseurl=https://packages.microsoft.com/yumrepos/ms-teams\nenabled=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc\n";;
+    system "sudo rpm --import 
https://packages.microsoft.com/keys/microsoft.asc";;
+    system "sudo mv $tmp_fh /etc/zypp/repos.d/ms-teams.repo";
+    system "sudo zypper refresh";
+    system "sudo zypper install teams";
+
+    ask_keep_repo( 'ms-teams' );
+
+    exit;
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.9.0/proxy/composer.json 
new/opi-0.10.0/proxy/composer.json
--- old/opi-0.9.0/proxy/composer.json   2020-10-03 15:48:17.000000000 +0200
+++ new/opi-0.10.0/proxy/composer.json  1970-01-01 01:00:00.000000000 +0100
@@ -1,5 +0,0 @@
-{
-    "require": {
-        "davedevelopment/stiphle": "^0.9.2"
-    }
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.9.0/proxy/composer.lock 
new/opi-0.10.0/proxy/composer.lock
--- old/opi-0.9.0/proxy/composer.lock   2020-10-03 15:48:17.000000000 +0200
+++ new/opi-0.10.0/proxy/composer.lock  1970-01-01 01:00:00.000000000 +0100
@@ -1,70 +0,0 @@
-{
-    "_readme": [
-        "This file locks the dependencies of your project to a known state",
-        "Read more about it at 
https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies";,
-        "This file is @generated automatically"
-    ],
-    "content-hash": "8be3fec76a27c45a4bf9c51a99f497b1",
-    "packages": [
-        {
-            "name": "davedevelopment/stiphle",
-            "version": "0.9.2",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/davedevelopment/stiphle.git";,
-                "reference": "76151e6474741adee258c1a4860a0460e319563b"
-            },
-            "dist": {
-                "type": "zip",
-                "url": 
"https://api.github.com/repos/davedevelopment/stiphle/zipball/76151e6474741adee258c1a4860a0460e319563b";,
-                "reference": "76151e6474741adee258c1a4860a0460e319563b",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.3.1"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.5",
-                "predis/predis": "^1.1"
-            },
-            "suggest": {
-                "doctrine/cache": "~1.0",
-                "predis/predis": "~1.1"
-            },
-            "type": "library",
-            "autoload": {
-                "psr-0": {
-                    "Stiphle": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/";,
-            "license": [
-                "MIT"
-            ],
-            "authors": [
-                {
-                    "name": "Dave Marshall",
-                    "email": "dave.marsh...@atstsolutions.co.uk",
-                    "homepage": "http://davedevelopment.co.uk";
-                }
-            ],
-            "description": "Simple rate limiting/throttling for php",
-            "homepage": "http://github.com/davedevelopment/stiphle";,
-            "keywords": [
-                "rate limit",
-                "rate limiting",
-                "throttle",
-                "throttling"
-            ],
-            "time": "2017-08-16T07:58:18+00:00"
-        }
-    ],
-    "packages-dev": [],
-    "aliases": [],
-    "minimum-stability": "stable",
-    "stability-flags": [],
-    "prefer-stable": false,
-    "prefer-lowest": false,
-    "platform": [],
-    "platform-dev": []
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.9.0/proxy/index.php 
new/opi-0.10.0/proxy/index.php
--- old/opi-0.9.0/proxy/index.php       2020-10-03 15:48:17.000000000 +0200
+++ new/opi-0.10.0/proxy/index.php      2021-01-17 08:25:43.000000000 +0100
@@ -19,4 +19,6 @@
 
 $obs_api_link = str_replace('://', "://$username:$password@", $obs_api_link);
 
+header("Access-Control-Allow-Origin: *");
+
 echo file_get_contents($obs_api_link);

Reply via email to