On Thu, Jun 12, 2008 at 3:58 AM, Xavier <[EMAIL PROTECTED]> wrote: > On Thu, Jun 12, 2008 at 10:47 AM, Antonio Huete Jimenez > <[EMAIL PROTECTED]> wrote: >> In repo-add/repo-remove, readlink is used to calculate the full path of >> a file (canonicalize with option -f). But in BSD there's no such option >> in readlink, so you have to use realpath instead >> > > Sorry, I didn't realize my question was that obscure, let me rephrase it : > Why the hell do we need to calculate the full path of these files? > > If I ask that question, it is because I am personally not able to > answer it myself after looking at this repo-add script. > If someone can explain why this is necessary, then we will have to use > your readlink/realpath patch. > If no one can, then it is probably useless so we can remove readlink > usage altogether and solve this portability problem in a much simpler > way.
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 _______________________________________________ pacman-dev mailing list [email protected] http://archlinux.org/mailman/listinfo/pacman-dev
