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 }