Some commands (verrel, sources, prep, import, ...) need to check whether the dist-git repository is in the correct state. It means at least the presence of the specfile.
In the beginning, rpkg detects layouts. Layouts determine the file structure of the repository. For example, most commands can't be executed for the RetiredLayout (there is no specfile).
When the repository directory exists, some layout can be always detected. Therefore '--path' argument is now checked for a valid directory.
The timeout change in the request fixes the new bandit's finding.
Some commands (verrel, sources, prep, import, ...) need to check whether the dist-git repository is in the correct state. It means at least the presence of the specfile.
In the beginning, rpkg detects layouts. Layouts determine the file structure of the repository. For example, most commands can't be executed for the RetiredLayout (there is no specfile).
When the repository directory exists, some layout can be always detected. Therefore '--path' argument is now checked for a valid directory.
The timeout change in the request fixes the new bandit's finding.
Fixes: #663
JIRA: RHELCMP-11387
Signed-off-by: Ondrej Nosek onosek@redhat.com