mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
jw-pkg fix: List-template-tables output templates
This patch fixes jw-pkg. It output templates, not template-tables. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
bdeb2be59b
commit
022d78c98d
1 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue