commented call to gitlab

parent 9171f412
......@@ -16,14 +16,15 @@ from application_utility.config import config
def update_databases():
"""update database files from gitlab"""
try:
with urlopen(config.APP_URL) as response:
apps = json.loads(response.read().decode("utf8"), object_pairs_hook=collections.OrderedDict)
with open("share/advanced.json", "w") as outfile:
json.dump(apps, outfile, sort_keys=True, indent=2)
except (HTTPException, json.JSONDecodeError, URLError, timeout):
pass
pass
# try:
# with urlopen(config.APP_URL) as response:
# apps = json.loads(response.read().decode("utf8"), object_pairs_hook=collections.OrderedDict)
# with open("share/advanced.json", "w") as outfile:
# json.dump(apps, outfile, sort_keys=True, indent=2)
#
# except (HTTPException, json.JSONDecodeError, URLError, timeout):
# pass
def read(*names, **kwargs):
......@@ -75,7 +76,8 @@ setup(
'application_utility.translation',
'application_utility.constants'],
package_dir={'application_utility': 'application_utility'},
data_files=[('share/application-utility', ['share/default.json', 'share/preferences.json']),
data_files=[('share/applications', ['desktop/application-utility.desktop']),
('share/application-utility', ['share/default.json', 'share/preferences.json']),
('share/locale/da/LC_MESSAGES', ['locale/da/LC_MESSAGES/application_utility.mo']),
('share/locale/fr/LC_MESSAGES', ['locale/fr/LC_MESSAGES/application_utility.mo'])],
scripts=["scripts/manjaro-application-utility"],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment