Update cli.py

This commit is contained in:
Alexander Vollkopf 2022-02-17 21:45:44 +01:00 committed by GitHub
parent 4803376b6c
commit 2f0edbf0fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -223,9 +223,9 @@ def plugins_add(package_name):
try: try:
p_metadata= metadata(package_name) p_metadata= metadata(package_name)
p_name=p_metadata['Name'] p_name=p_metadata['Name']
if p_name != package_name: #if p_name != package_name:
print("Error. Package name {} does not exist. Did you mean {}".format(package_name,p_name)) # print("Error. Package name {} does not exist. Did you mean {}".format(package_name,p_name))
installation = False # installation = False
except Exception as e: except Exception as e:
print("Error. Package {} cannot be found in installed packages".format(package_name)) print("Error. Package {} cannot be found in installed packages".format(package_name))
installation = False installation = False