mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 09:13:37 +02:00
pkg.sh log-install: -f package-format is ignored
pkg.sh log-install ignores the -f option passed to pkg.sh, and always defaults to "rpm". Fix that. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
37b436c04f
commit
93c24c657d
1 changed files with 14 additions and 3 deletions
|
|
@ -734,9 +734,20 @@ cmd_log_install()
|
|||
|
||||
cfgfile_macro()
|
||||
{
|
||||
if echo "$*" | grep -qe '/etc/\|\.conf$\|\.leases$'; then
|
||||
echo "%config(noreplace) "
|
||||
fi
|
||||
case "$c_format" in
|
||||
rpm)
|
||||
if echo "$*" | grep -qe '/etc/\|\.conf$\|\.leases$'; then
|
||||
echo "%config(noreplace) "
|
||||
fi
|
||||
;;
|
||||
deb|debian)
|
||||
if echo "$*" | grep -qe '/etc/\|\.conf$\|\.leases$'; then
|
||||
echo "%config "
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
while [ "$1" != -- ]; do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue