So we get a symlink to ourself, and overwrite the originally generated
repo database. This patch prevents this behavior, and writes out a
non-compressed database to invalid.xxx and generates no links.
Thoughts? Pacman has a requirement that the db file end in '.db', and
the only other extension out there in the wild is '.files' as far as I
know. Should we have strict enforcement of one of these two types in
repo-add? Doing this could also make the --files flag a bit less
necessary as one could auto-detect the correct setting based on the DB
Given the requirement for a .db extension, how about just creating
"invalid.xxx.db" and assuming that no compression is wanted and that is
the name of the repo?
if [[ $dblink == $REPO_DB_FILE ]]; then