Skip to content

Commit

Permalink
Fix #35 Add warning for personal repository
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyunhe committed Jan 17, 2021
1 parent 793d433 commit 2b0028e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### 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]

Expand Down
5 changes: 3 additions & 2 deletions opi
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ my @binary_options = get_binary_by_name($selected_name, @bins);
#
print_binary_options(@binary_options);


#
# Select a binary package option
#
Expand All @@ -140,7 +139,9 @@ my $selected_binary = $binary_options[$selected_binary_number - 1];
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
Expand Down

0 comments on commit 2b0028e

Please sign in to comment.