Commit b8100d1a authored by ZappeL's avatar ZappeL
Browse files

Merge branch 'do_update' into 'master'

fix: do_update

See merge request !2
parents a960d9fb 5ad07db3
# eselect-vala
Eselect module for Vala (and vapigen).
Eselect module for Vala and its tools.
## Install
......
......@@ -2,7 +2,7 @@
# Copyright 2005-2019 Gentoo Foundation
# Distributed under the terms of the GNU GPL version 2 or later
DESCRIPTION="Create symlinks for vala and its tools"
DESCRIPTION="Create symlinks for Vala and its tools"
MAINTAINER="zappel@simple-co.de"
VERSION="20190920"
......@@ -45,8 +45,8 @@ do_show() {
for bin in {vala,valac,vapigen,vala-gen-introspect}; do
if [[ -L "${EROOT}/usr/bin/${bin}" ]]; then
local link=$(canonicalise "${EROOT}/usr/bin/${bin}")
write_kv_list_entry "${link%/}" ""
local link=$(readlink "${EROOT}/usr/bin/${bin}")
write_kv_list_entry "${EROOT}/usr/bin/${link%/}" ""
else
write_kv_list_entry "(unset)" ""
fi
......@@ -66,7 +66,7 @@ do_list() {
write_list_start "Available symlink targets:"
for (( i = 0; i < ${#targets[@]}; i++ )); do
[[ ${targets[i]} = \
$(basename "$(canonicalise "${EROOT}/usr/bin/vala")") ]] \
$(basename "$(readlink "${EROOT}/usr/bin/vala")") ]] \
&& targets[i]=$(highlight_marker "${targets[i]}")
done
write_numbered_list -m "(none found)" "${targets[@]}"
......@@ -105,7 +105,7 @@ do_set() {
### update actaion ###
describe_update() {
echo "Updates to the latest version of vala"
echo "Updates to the latest installed version of vala"
}
do_update() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment