diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-11-23 19:25:09 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-11-23 19:25:09 +0100 |
commit | 8dcaf666fb9f29a155d39f0dc3a3b6e2ea7407ba (patch) | |
tree | a1e547af599d9bad05f2e0b19f04a9b90032ad47 /src/hydrilla/proxy/web_ui/root.py | |
parent | 9b01180ec981d6d0ffd7b0e84a3ddbb0a2cf1ecc (diff) | |
download | haketilo-hydrilla-8dcaf666fb9f29a155d39f0dc3a3b6e2ea7407ba.tar.gz haketilo-hydrilla-8dcaf666fb9f29a155d39f0dc3a3b6e2ea7407ba.zip |
facilitate manual package updates after repository refreshals
Diffstat (limited to 'src/hydrilla/proxy/web_ui/root.py')
-rw-r--r-- | src/hydrilla/proxy/web_ui/root.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/hydrilla/proxy/web_ui/root.py b/src/hydrilla/proxy/web_ui/root.py index 6f9e349..9a14268 100644 --- a/src/hydrilla/proxy/web_ui/root.py +++ b/src/hydrilla/proxy/web_ui/root.py @@ -195,6 +195,13 @@ def home_post() -> werkzeug.Response: state.update_settings(advanced_user=True) elif action == 'user_make_simple': state.update_settings(advanced_user=False) + elif action == 'upate_all_items': + try: + state.upate_all_items() + except st.FileInstallationError: + return home({'file_installation_error': True}) + except st.ImpossibleSituation: + return home({'impossible_situation_error': True}) elif action == 'prune_orphans': state.prune_orphan_items() else: |