Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Document the upgrade variable
Baptiste Daroussin committed 6 years ago
commit e7780c1c897eb9540276e39cbd3306b83f341636
parent d27c824
2 files changed +4 -0
modified docs/pkg-lua-script.5
@@ -75,6 +75,8 @@ by the
.Fl r
arguments passed to
.Xr pkg 8 .
+
.It Va pkg_upgrade
+
Boolean to inform the scripts that it is running or not in the context of an upgrade
.El
.Pp
The following function has been added:
modified docs/pkg-script.5
@@ -50,6 +50,8 @@ Number of a file descriptor to be used to be able to send messages to the user
that will be shown at the end of the
.Xr pkg 8
process.
+
.It Ev PKG_UPGRADE
+
Variable existing when the scripts is run in the context of an upgrade of the package
.El
.Sh SEE ALSO
.Xr pkg_printf 3 ,