[pacman-dev] repo-add error in BSD

Xavier shiningxc at gmail.com
Thu Jun 12 04:58:43 EDT 2008


On Thu, Jun 12, 2008 at 10:47 AM, Antonio Huete Jimenez
<ahuete.devel at gmail.com> 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.




More information about the pacman-dev mailing list