![Symantec WISE LINUX PACKAGE EDITOR 8.0 Скачать руководство пользователя страница 52](http://html.mh-extra.com/html/symantec/wise-linux-package-editor-8-0/wise-linux-package-editor-8-0_reference_1418947052.webp)
Linux Package Editor Reference
52
Script Actions
To complete the dialog box:
z
Package Name
Enter or select a package on which to perform the query.
z
Operation
Specify the check to perform. Each option returns a different value to the variable
you define below.
Is Package Installed?
If the package is installed, 0 is returned to the variable. If the package is not
installed, a non-zero value is returned.
Verify Package
Mark this to use the rpm -V command to verify the package. When you mark
this option, you can enter command-line options in Options below. If the
package is verified, 0 is returned to the variable. If the package is not verified, a
non-zero value is returned.
Get Package Version
The package version is returned to the variable.
Get Package Release
The release number is returned to the variable.
Get Other Package Information
Use the --queryformat option to obtain additional information with a custom
query. When you mark this option, you can enter queryformat tags in Options
below.
z
Variable
Enter or select the name of the variable in which to place the results of the query.
When you define the variable, you do not have to precede it with a $. Otherwise,
follow standard conventions for naming Linux shell variables.
z
Options
This is available only when the following options are marked:
If you marked the Verify package option above, enter one or more valid
command-line options to use with the rpm -V command.
If you marked the Get Other Package Information option above, enter a
valid Linux queryformat tag. The braces and other characters that enclose the
tag in the option are inserted for you. Example: Entering PROVIDES results in
the following option:
--qf "%{PROVIDES}"
The above example displays the capabilities that the package provides.
This action does not support format strings in the --queryformat option. To add
more complex queries to the script, use the Execute Shell Command script
action.
See
Execute Shell Command
on page 56.
Compiler Variable Actions
Compiler Variable If, Else, and End actions are used in an If block to let you build
different versions of an installation. You set the value of a compiler variable at build