[packages/python-setuptools] adapter, use realtive symlink

Jacek Konieczny jajcus at jajcus.net
Sat Nov 28 16:36:07 CET 2015


On 2015-11-28 15:16, glen wrote:
> commit b6cbc91d94c8fad86e0ad1b271429f6772218700
> Author: Elan Ruusamäe <glen at delfi.ee>
> Date:   Sat Nov 28 16:16:47 2015 +0200
> 
>     adapter, use realtive symlink
[...]

> -ln -f $RPM_BUILD_ROOT/%{_bindir}/easy_install-%{py3_ver} $RPM_BUILD_ROOT/%{_bindir}/easy_install
> +ln -sf easy_install-%{py3_ver} $RPM_BUILD_ROOT%{_bindir}/easy_install
>  %else
> -ln -f $RPM_BUILD_ROOT/%{_bindir}/easy_install-%{py_ver} $RPM_BUILD_ROOT/%{_bindir}/easy_install
> +ln -sf easy_install-%{py_ver} $RPM_BUILD_ROOT%{_bindir}/easy_install
>  %endif

Why symlink? There was a hard-link for purpose. No need for extra
redirection. And there are no relative hard links.

Jacek


More information about the pld-devel-en mailing list