Added a new "preserve" var for build templates.
When a package has this defined, its files won't be removed after a removal or upgrade process. This should be used in a few cases, mostly for the kernel pkg to always preserve a working kernel+modules. --HG-- extra : convert_revision : 03b19d1df2b029b6671865072b4d9529b0b86aa4
This commit is contained in:
parent
a810a83f41
commit
d27595922c
|
@ -289,6 +289,12 @@ _EOF
|
|||
echo "<true/>" >> $TMPFPROPS
|
||||
fi
|
||||
|
||||
# pkg needs to preserve its files after removal/upgrade?
|
||||
if [ -n "$preserve" ]; then
|
||||
echo "<key>preserve</key>" >> $TMPFPROPS
|
||||
echo "<true/>" >> $TMPFPROPS
|
||||
fi
|
||||
|
||||
# Dependencies
|
||||
if [ -n "$run_depends" ]; then
|
||||
echo "<key>run_depends</key>" >> $TMPFPROPS
|
||||
|
|
|
@ -71,7 +71,7 @@ reset_tmpl_vars()
|
|||
post_configure post_build post_install nostrip \
|
||||
make_install_target version revision essential \
|
||||
sgml_catalogs xml_catalogs xml_entries sgml_entries \
|
||||
disable_parallel_build run_depends font_dirs \
|
||||
disable_parallel_build run_depends font_dirs preserve \
|
||||
only_for_archs conf_files keep_libtool_archives \
|
||||
noarch subpackages sourcepkg gtk_iconcache_dirs \
|
||||
abi_depends api_depends triggers openrc_services \
|
||||
|
|
Loading…
Reference in New Issue