mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 17:23:36 +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()
|
cfgfile_macro()
|
||||||
{
|
{
|
||||||
|
case "$c_format" in
|
||||||
|
rpm)
|
||||||
if echo "$*" | grep -qe '/etc/\|\.conf$\|\.leases$'; then
|
if echo "$*" | grep -qe '/etc/\|\.conf$\|\.leases$'; then
|
||||||
echo "%config(noreplace) "
|
echo "%config(noreplace) "
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
deb|debian)
|
||||||
|
if echo "$*" | grep -qe '/etc/\|\.conf$\|\.leases$'; then
|
||||||
|
echo "%config "
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
while [ "$1" != -- ]; do
|
while [ "$1" != -- ]; do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue