-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
does not work on fedora #162
Comments
For this need two ways
|
@jwodder, since we are not building .rpm's for fedora and I am not sure if any conversion (via smth like
@asmacdo -- you are welcome to try (redo your invocation, but add |
@yarikoptic I believe you mean |
correct! I forgot that we used already |
the script I use to install any wanted version within #!/bin/bash
set -eu
v="${1:-}"
annexes=$HOME/git-annexes
if [ -n "$v" ]; then
~/proj/datalad/datalad-installer/src/datalad_installer.py -E $annexes/$v.env git-annex=$v -m datalad/git-annex:release --install-dir $annexes/$v
else
# install current one, deduce version and rename accordingly
if [ ! -e ~/git-annexes/current ]; then
~/proj/datalad/datalad-installer/src/datalad_installer.py -E $annexes/current.env git-annex -m datalad/git-annex --install-dir $annexes/current
fi
v=$(source $annexes/current.env; git annex version | head -n 1 | sed -e 's,.*: *,,g' -e 's,-[0-9]~.*,,g')
if [ -e $annexes/$v ] ; then
echo "$annexes/$v already exists!" >&2
exit 1
fi
mv "$annexes/current" "$annexes/$v"
mv "$annexes/current.env" "$annexes/$v.env"
sed -i -e "s,current,$v,g" "$annexes/$v.env"
fi
echo "I: use source $annexes/$v.env" and it should work on fedora in principle |
dpkg-based methods now raise MethodNotSupportedError when called on non-dpkg systems without `--install-dir`
Looks like it will not work on any non-debian distro if it needs dpkg?
$ datalad-installer git-annex -m datalad/git-annex:release
The text was updated successfully, but these errors were encountered: