python-tuf/tuf/scripts
Martin Vrachev 946d11bca4 Make confined_target_dirs optional field
The field confined_target_dirs from the MIRROR_SCHEMA  is
a list of strings. Those strings define the accessible target
paths for that mirror. For one target to be available for that mirror,
its path should have as a prefix at least one of the strings defined
in confined_target_dirs.

That's why when confined_target_dirs is a list with one element empty
string (e.g. ['']) this means all targets files on that mirror are
available and if confined_target_dirs is empty list (e.g. []) this
would be interpreted as none of the target files is available.

This is a confusing API that could easily lead to mistakes.
That's why it's better we promote to not set confined_target_dirs
at all if a user wants targets to be available.

Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
2020-10-16 15:35:24 +03:00
..
__init__.py Add __init__.py to scripts directory 2018-04-17 14:54:10 -04:00
client.py Make confined_target_dirs optional field 2020-10-16 15:35:24 +03:00
repo.py Re-raise exceptions explicitly using the 'from' keyword 2020-08-24 13:44:09 +03:00