Allan McRae wrote:
This prevents circular symlinks and weird final package locations when using commands like 'PKGDEST="." makepkg'.
Fixes FS#20922.
Interesting, I just realized something : I made a dir symlink : bar -> foo/ [xavier@xps-m1530 ~]$ cd foo/ [xavier@xps-m1530 foo]$ echo $PWD ; readlink -f . /home/xavier/foo /home/xavier/foo [xavier@xps-m1530 foo]$ cd ../bar/ [xavier@xps-m1530 bar]$ echo $PWD ; readlink -f . /home/xavier/bar /home/xavier/foo So $PWD gives exactly what I was looking for back then for repo-add, absolute pathname without symlink resolution. I wonder if there is some weird cases where it wouldn't do what we want. But at least it seems to work for me. And just in case we ever use readlink/realpath/etc, it would be bad to forget to run it on the two paths ;)