From 022d78c98d0d6a44eb2c096f3efb4b6bbd93f54f Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Thu, 16 May 2019 16:00:34 +0000 Subject: [PATCH] jw-pkg fix: List-template-tables output templates This patch fixes jw-pkg. It output templates, not template-tables. Signed-off-by: Jan Lindemann --- scripts/jw-pkg | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/jw-pkg b/scripts/jw-pkg index dccc8cf1..e7136438 100644 --- a/scripts/jw-pkg +++ b/scripts/jw-pkg @@ -188,7 +188,7 @@ cmd_list_templates() local ext_from_re=`echo $ext_from | sed 's/\./\\./g'` local f list_packages "$@" | xargs -r rpm -ql | while read f; do - [ -f "$f" ] || continue + [ -f "$f" -o -L "$f" ] || continue echo $f | grep -q "$ext_from_re$" || continue echo $f done @@ -197,12 +197,13 @@ cmd_list_templates() cmd_list_template_tables() { local ext_from="$table_exts" - local e f + local e f t list_packages "$@" | xargs -r rpm -ql | while read f; do [ -f "$f" -o -L "$f" ] || continue for e in $ext_from; do - [ -f "${f%.*}$e" ] || continue - echo $f + t="${f%.*}$e" + [ -f "$t" ] || continue + echo $t done done }