Change the order of the fields in the pkg-message UCL examples. To show
how to better write them, the message is often long, and it is easier to see the type and other fields if they are at the beginning.
This commit is contained in:
parent
620099871a
commit
663a88b829
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=53304
1 changed files with 9 additions and 9 deletions
|
@ -260,10 +260,10 @@ EOD
|
|||
|
||||
<programlisting>[
|
||||
{
|
||||
message: "package being removed."
|
||||
type: remove
|
||||
message: "package being removed."
|
||||
}
|
||||
{ message: "package being installed.", type: install }
|
||||
{ type: install, message: "package being installed."}
|
||||
]</programlisting>
|
||||
</example>
|
||||
|
||||
|
@ -275,24 +275,24 @@ EOD
|
|||
|
||||
<programlisting>[
|
||||
{
|
||||
type: upgrade
|
||||
message: "Package is being upgraded."
|
||||
type: upgrade
|
||||
}
|
||||
{
|
||||
message: "Upgrading from before 1.0 need to do this."
|
||||
type: upgrade
|
||||
maximum_version: "1.0"
|
||||
type: upgrade
|
||||
message: "Upgrading from before 1.0 need to do this."
|
||||
}
|
||||
{
|
||||
message: "Upgrading from after 1.0 should do that."
|
||||
type: upgrade
|
||||
minimum_version: "1.0"
|
||||
type: upgrade
|
||||
message: "Upgrading from after 1.0 should do that."
|
||||
}
|
||||
{
|
||||
message: "Upgrading from > 1.0 and < 3.0 remove that file."
|
||||
type: upgrade
|
||||
maximum_version: "3.0"
|
||||
minimum_version: "1.0"
|
||||
type: upgrade
|
||||
message: "Upgrading from > 1.0 and < 3.0 remove that file."
|
||||
}
|
||||
]</programlisting>
|
||||
</example>
|
||||
|
|
Loading…
Reference in a new issue