Skip to content

Commit

Permalink
Handle <package>/default symlinks in alienv
Browse files Browse the repository at this point in the history
If we're loading a symlink, the normal version detection won't work, so just
check and we successfully loaded any version of the package on the right
architecture.
  • Loading branch information
TimoWilken committed Feb 26, 2024
1 parent 0b45546 commit 8375936
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cvmfs/alienv
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@ if [[ $PACKAGES ]]; then
for X in $PACKAGES; do
# Policy: all specified packages must be found in current platform. If
# this is not the case then fallback on the next platform.
# If we're loading a <package>/default symlink, just check if any version is loaded.
[ "${X##*/}" = default ] && X=${X%/*}
echo $LOADED | grep -q $X || { OK=0; break; }
done
[[ $OK == 1 ]] && break || { [[ $ALIENV_DEBUG == 1 ]] && printf "NOTICE: cannot find packages with MODULEPATH=$MODULEPATH\n" >&2 ; }
Expand Down

0 comments on commit 8375936

Please sign in to comment.