[pacman-dev] repo-add error in BSD
Xavier
shiningxc at gmail.com
Thu Jun 12 11:10:17 EDT 2008
On Thu, Jun 12, 2008 at 5:03 PM, Aaron Griffin <aaronmgriffin at gmail.com> wrote:
>
> Without looking at the script, I imagine it has to do with calculating
> the path used in %FILENAME% in the db entries. it *does* support full
> paths:
> %FILENAME%
> foo/bar/somepkg-1.0.pkg.tar.gz
>
Actually, I didn't check that carefully, but here is how filename is
generated by repo-add :
echo -e "%FILENAME%\n$(basename "$1")\n" >>desc
And at the beginning of db_write_entry function :
local pkgfile=$(readlink -f "$1")
So that means readlink is not used for the FILENAME, and only the
basename of the file is put there, so not the full path.
More information about the pacman-dev
mailing list