Blame 0073-i18n-terminfo-module-setup.sh-fixed-cp-t-calls.patch

Harald Hoyer 811c04
From 95a5b23a388a2e49dee10283727e6dded8f1c9c2 Mon Sep 17 00:00:00 2001
Harald Hoyer 811c04
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 811c04
Date: Fri, 27 Jul 2012 15:34:54 +0200
Harald Hoyer 811c04
Subject: [PATCH] i18n,terminfo/module-setup.sh: fixed "cp -t" calls
Harald Hoyer 811c04
Harald Hoyer 811c04
---
Harald Hoyer 811c04
 modules.d/10i18n/module-setup.sh     | 2 +-
Harald Hoyer 811c04
 modules.d/95terminfo/module-setup.sh | 2 +-
Harald Hoyer 811c04
 2 files changed, 2 insertions(+), 2 deletions(-)
Harald Hoyer 811c04
Harald Hoyer 811c04
diff --git a/modules.d/10i18n/module-setup.sh b/modules.d/10i18n/module-setup.sh
Harald Hoyer 811c04
index a1cf1c8..cf5ad96 100755
Harald Hoyer 811c04
--- a/modules.d/10i18n/module-setup.sh
Harald Hoyer 811c04
+++ b/modules.d/10i18n/module-setup.sh
Harald Hoyer 811c04
@@ -96,7 +96,7 @@ install() {
Harald Hoyer 811c04
 
Harald Hoyer 811c04
         for _src in $(eval echo ${kbddir}/{${KBDSUBDIRS}}); do
Harald Hoyer 811c04
             inst_dir "$_src"
Harald Hoyer 811c04
-            cp --reflink=auto --sparse=auto -prfL -t "${initdir}/${_src%/*}" "$_src"
Harald Hoyer 811c04
+            cp --reflink=auto --sparse=auto -prfL -t "${initdir}/${_src}" "$_src"/*
Harald Hoyer 811c04
         done
Harald Hoyer 811c04
 
Harald Hoyer 811c04
         # remove unnecessary files
Harald Hoyer 811c04
diff --git a/modules.d/95terminfo/module-setup.sh b/modules.d/95terminfo/module-setup.sh
Harald Hoyer 811c04
index e1914a5..5e5c269 100755
Harald Hoyer 811c04
--- a/modules.d/95terminfo/module-setup.sh
Harald Hoyer 811c04
+++ b/modules.d/95terminfo/module-setup.sh
Harald Hoyer 811c04
@@ -11,6 +11,6 @@ install() {
Harald Hoyer 811c04
 
Harald Hoyer 811c04
     if [ -d ${_terminfodir} ]; then
Harald Hoyer 811c04
         inst_dir "$_terminfodir"
Harald Hoyer 811c04
-        cp --reflink=auto --sparse=auto -prfL -t "${initdir}/${_terminfodir%/*}" "$_terminfodir"
Harald Hoyer 811c04
+        cp --reflink=auto --sparse=auto -prfL -t "${initdir}/${_terminfodir}" "$_terminfodir"/*
Harald Hoyer 811c04
     fi
Harald Hoyer 811c04
 }