Repo.pm: add parse_db_file()
commita3b6027b7c2793bea4107896469de585a9aed305
authorAlad Wenter <alad@archlinux.org>
Wed, 3 Apr 2024 18:22:03 +0000 (3 20:22 +0200)
committerAlad Wenter <alad@archlinux.org>
Wed, 3 Apr 2024 18:42:00 +0000 (3 20:42 +0200)
tree576fabb184d070955abf8b2dcb569173e5e62b3b
parentae10080af407d668475e6ee62caebda4cc70911e
Repo.pm: add parse_db_file()

* Add a missing waitpid() so that a missing file actually results in an
  error.
* Use `-e` in addition to `length()` as `abs_path` may resolve
  non-existing paths.
lib/aur-repo-parse
perl/AUR/Repo.pm
tests/repo-parse