[pacman-dev] [PATCH] repo-add: added a realpath implementation in bash

Sebastian Nowicki sebnow at gmail.com
Wed Feb 11 00:08:14 EST 2009


On 11/02/2009, at 7:33 AM, Yun Zheng Hu wrote:

> When realpath or readlink is not available it will fallback to a
> realpath implementation in bash. An extra check is also added for
> "readlink -f", because not all platforms support the -f flag.
>
> The readlink implementation in bash is borrowed from Debian's dpkg  
> tools.

Awesome! This, along with "fix eval and quote issues", makes repo-add  
compatible with Mac OS X (afaik)!

P.S. I haven't actually tested it on symlinks.

[1] http://www.archlinux.org/pipermail/pacman-dev/2009-February/008127.html


More information about the pacman-dev mailing list