diff --git a/doc/user-changes.md b/doc/user-changes.md index c3e57fe61..971b282ed 100644 --- a/doc/user-changes.md +++ b/doc/user-changes.md @@ -6,6 +6,18 @@ stay on top of `alr` new features. ## Release `2.0-dev` +### Automatic index updates + +PR [#1447](https://github.com/alire-project/alire/pull/1447) + +A new configuration option, `index.auto_update`, allows setting the refresh +period of indexes. It defaults to 24 hours and the user will be asked the first +time to allow automatic updates. Setting this option to 0 will also disable +automatic updates. + +When enabled, updates may happen before executing commands that rely on +indexes: `get`, `search`, `with`, etc. + ### Deprecation of `dependencies.dir` in favor of `dependencies.shared` PR [#1419](https://github.com/alire-project/alire/pull/1419) diff --git a/testsuite/tests/index/auto-update/test.py b/testsuite/tests/index/auto-update/test.py index bc8dabd8a..525191e4e 100644 --- a/testsuite/tests/index/auto-update/test.py +++ b/testsuite/tests/index/auto-update/test.py @@ -4,7 +4,6 @@ import os from drivers.alr import run_alr -# from drivers.asserts import assert_eq, assert_match from drivers.helpers import content_of, lines_of CONFIG_FILE = os.path.join("alr-config", "config.toml")