repo-add: try symlink, then hardlink, then copy for DB file
commit21d5dedfddb290da4e9beafe3e28abcdee1b7091
authorDan McGee <dan@archlinux.org>
Thu, 24 Jun 2010 15:06:36 +0000 (24 10:06 -0500)
committerDan McGee <dan@archlinux.org>
Thu, 24 Jun 2010 15:06:36 +0000 (24 10:06 -0500)
tree781edea2b3cc514dac463e2d4ca002e4a720b1da
parent6f4f9c1b66ed859b3679d70e15c003ab4907b823
repo-add: try symlink, then hardlink, then copy for DB file

We were seeing some issues when trying to create our new database alias
using symlinks on certain filesystems (see FS#19907). Have a fallback method
in place where we first try a symlink, then a hard link, then just copy the
database if all else fails.

Signed-off-by: Dan McGee <dan@archlinux.org>
scripts/repo-add.sh.in