public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Vadim A. Misbakh-Soloviov" <mva@mva.name>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/lua:master commit in: app-eselect/eselect-luajit/files/, app-eselect/eselect-lua/files/
Date: Sat,  4 Apr 2015 11:45:37 +0000 (UTC)	[thread overview]
Message-ID: <1428147923.6adf250de6a41b9a1fa36e1f85a1f1bbedcc4786.mva@gentoo> (raw)

commit:     6adf250de6a41b9a1fa36e1f85a1f1bbedcc4786
Author:     Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name>
AuthorDate: Sat Apr  4 11:45:23 2015 +0000
Commit:     Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
CommitDate: Sat Apr  4 11:45:23 2015 +0000
URL:        https://gitweb.gentoo.org/proj/lua.git/commit/?id=6adf250d

[app-eselect/lua{,jit}] Some fixes

Signed-off-by: Vadim A. Misbakh-Soloviov <git <AT> mva.name>

 app-eselect/eselect-lua/files/lua.eselect-2       | 4 ++--
 app-eselect/eselect-luajit/files/luajit-1.eselect | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/app-eselect/eselect-lua/files/lua.eselect-2 b/app-eselect/eselect-lua/files/lua.eselect-2
index 87681e0..d3f67ad 100644
--- a/app-eselect/eselect-lua/files/lua.eselect-2
+++ b/app-eselect/eselect-lua/files/lua.eselect-2
@@ -52,7 +52,7 @@ find_targets() {
 	local dirs
 	local prefix="${EROOT}/usr/bin/lua"
 	for f in ${prefix}{5,jit-2}* ; do
-		dirs="${dirs} ${f##$prefix}"
+		[[ -f "${f}" ]] && dirs="${dirs} ${f##$prefix}"
 	done
 	echo $dirs
 }
@@ -67,7 +67,7 @@ resolv_target() {
 }
 
 get_active_version() {
-	readlink -e "${EROOT}"/usr/bin/lua | sed -ne "s:.*/usr/bin/lua\([\d.-]*\):\1:p"
+	readlink -e "${EROOT}"/usr/bin/lua | sed -ne "s:.*/usr/bin/lua\([\w.-]*\):\1:p"
 }
 
 ## Actual actions

diff --git a/app-eselect/eselect-luajit/files/luajit-1.eselect b/app-eselect/eselect-luajit/files/luajit-1.eselect
index fdd1e8d..3e6f376 100644
--- a/app-eselect/eselect-luajit/files/luajit-1.eselect
+++ b/app-eselect/eselect-luajit/files/luajit-1.eselect
@@ -22,7 +22,7 @@ sort_luajit_versions() {
 find_targets() {
 	local f
 	for f in $(find "${EROOT}"/usr/bin/ -type f -iname 'luajit-[[:digit:]]*'); do
-	basename "${f}"
+		basename "${f}"
 	done | sort_luajit_versions
 }
 


                 reply	other threads:[~2015-04-04 11:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1428147923.6adf250de6a41b9a1fa36e1f85a1f1bbedcc4786.mva@gentoo \
    --to=mva@mva.name \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox