[equo] fix UGC vote get command, do not require login credentials
This commit is contained in:
@@ -240,16 +240,6 @@ def _ugc_votes(entropy_client, options):
|
||||
)
|
||||
return 1
|
||||
|
||||
username = webserv.get_credentials()
|
||||
if username is None:
|
||||
print_info(
|
||||
"[%s] %s" % (
|
||||
darkgreen(repository),
|
||||
blue(_("Not logged in, please login first.")),
|
||||
)
|
||||
)
|
||||
return 0
|
||||
|
||||
rc = 0
|
||||
if cmd == "get":
|
||||
|
||||
@@ -269,6 +259,16 @@ def _ugc_votes(entropy_client, options):
|
||||
|
||||
elif cmd == "add":
|
||||
|
||||
username = webserv.get_credentials()
|
||||
if username is None:
|
||||
print_info(
|
||||
"[%s] %s" % (
|
||||
darkgreen(repository),
|
||||
blue(_("Not logged in, please login first.")),
|
||||
)
|
||||
)
|
||||
return 0
|
||||
|
||||
print_info(" %s [%s] %s" % (
|
||||
bold("@@"),
|
||||
purple(pkgkey),
|
||||
|
||||
Reference in New Issue
Block a user