Created by: TomasTomecek
Hi there, Fedora maintainer here.
When packaging autojump in Fedora, I have hard times with this piece of code:
https://github.com/wting/autojump/blob/master/install.py#L36
It translates to a path from buildroot instead of real path on the system when the package is installed, e.g.:
Please manually add the following line(s) to ~/.zshrc:
[[ -s /BUILDROOT/autojump-22.3.0-1.fc22.x86_64/etc/profile.d/autojump.sh ]] && source /BUILDROOT/autojump-22.3.0-1.fc22.x86_64/etc/profile.d/autojump.sh
This patch adds argument --distribution
to install.py
script which disables such behaviour and produces correct output:
Please manually add the following line(s) to ~/.zshrc:
[[ -s /etc/profile.d/autojump.sh ]] && source /etc/profile.d/autojump.sh
It also produces correct code for autojump.sh
.