Skip to content

Commit 495b815

Browse files
authored
consider verbose-mode
see openSUSE#201
1 parent 7580c79 commit 495b815

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opi/github.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import requests
22
import opi
3+
from opi.state import global_state
34

45
def http_get_json(url):
56
r = requests.get(url)
@@ -36,7 +37,8 @@ def install_rpm_release(org, repo, filters=[lambda a: a['name'].endswith('.rpm')
3637
if not asset:
3738
print(f"No RPM asset found for {org}/{repo} release {latest_release['tag_name']}")
3839
return
39-
print(f"Found: {asset['url']}")
40+
if global_state.arg_verbose_mode:
41+
print(f"Found: {asset['url']}")
4042
if not opi.ask_yes_or_no(f"Do you want to install {repo} release {latest_release['tag_name']} RPM from {org} github repo?"):
4143
return
4244
opi.install_packages([asset['url']], allow_unsigned=allow_unsigned)

0 commit comments

Comments
 (0)