repo: remove explicit file/directory checks
commit97e90e06b8359ad00c44c436fbdfeac4bfbca4dc
authorAlad Wenter <alad@archlinux.org>
Wed, 28 Feb 2024 20:51:06 +0000 (28 21:51 +0100)
committerAlad Wenter <alad@archlinux.org>
Wed, 28 Feb 2024 20:51:06 +0000 (28 21:51 +0100)
treefd8015e8cf74081aac2840d63b77df159020ea14
parent6a30e25b1310407d86d8614a3cbe15503de0aae4
repo: remove explicit file/directory checks

Consider a script `aur-repo-init`, which aims to create a local
repository by the file paths defined in pacman.conf. With a
file/directory check in place, `aur-repo` would fail to print the
necessary paths, even though the repository is not directly accessed.

Remove the checks to address this use case. Necessary file checks are
still done by `aur-repo-parse`, when actually reading from the local
repository. The same holds for `aur-build` for write access.

Reported-by: Ivan Shapovalov <intelfx@intelfx.name>
lib/aur-repo
makepkg/aurutils.changelog