Skip to contentSkip to conversation

ncurses-terminfo: Remove bashism from basic terminfo installation

PATCH RESEND In review Seth Bollinger 2 participants 2 messages Oct 30, 2013

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 ncurses-terminfo: Remove bashism from basic terminfo installation

The vtX terminfo files aren't being copied on systems where bash isn't the default shell (debian, etc.). I removed the bash specific syntax so the files are properly copied on these systems.

---
 meta/recipes-core/ncurses/ncurses.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/ncurses/ncurses.inc +1 -1
index 671daf8..01cdf13 100644
@@ -174,7 +174,7 @@ shell_do_install() {
 
         # include some basic terminfo files
         # stolen ;) from gentoo and modified a bit
-        for x in ansi console dumb linux rxvt screen sun vt{52,100,102,200,220} xterm-color xterm-xfree86 xterm-256color
+        for x in ansi console dumb linux rxvt screen sun vt52 vt100 vt102 vt200 vt220 xterm-color xterm-xfree86 xterm-256color
         do
                 local termfile="$(find "${D}${datadir}/terminfo/" -name "${x}" 2>/dev/null)"
                 local basedir="$(basename $(dirname "${termfile}"))"
Signature · 1 line
1.7.10.4
#1 lore raw

I have it pending in the Master under test branch, normally patches to the core (meta) go to the [email protected]

Thanks
Sau!

Quoted 23 lines · Seth Bollinger

The vtX terminfo files aren't being copied on systems where bash isn't the default shell (debian, etc.). I removed the bash specific syntax so the files are properly copied on these systems.

---
  meta/recipes-core/ncurses/ncurses.inc |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/ncurses/ncurses.inc +1 -1
index 671daf8..01cdf13 100644
@@ -174,7 +174,7 @@ shell_do_install() {
 
          # include some basic terminfo files
          # stolen ;) from gentoo and modified a bit
-        for x in ansi console dumb linux rxvt screen sun vt{52,100,102,200,220} xterm-color xterm-xfree86 xterm-256color
+        for x in ansi console dumb linux rxvt screen sun vt52 vt100 vt102 vt200 vt220 xterm-color xterm-xfree86 xterm-256color
          do
                  local termfile="$(find "${D}${datadir}/terminfo/" -name "${x}" 2>/dev/null)"
                  local basedir="$(basename $(dirname "${termfile}"))"