Package: Dependency Search (reverse)
The module checks all packages in a client if any depend on a given one. Therefore, all metadata in the client is read and the dependency definitions are search for the given package.
Designation
- Name
- pm.RequiredBy
- Aliases
- DependencySearchReverse, pm.DependencySearchReverse
Configuration
- Ausgabe
- Optionen
- Variable Object (
variable
) - Name of the variable object that will be just for storing the data
- Variable Source Connection (
variable-source
) - If given it defines an alternative b4A connection where to find the variable objectMögliche Werte: <TabItem b4A Verbindungen>
- XML Variable (
xml-variable
) - name of the XML variable object used to store the information
- Key (
xml-variable-key
) - key in the XML variable object to use
- XML Variable Source Connection (
xml-variable-source
) - If given it defines an alternative b4A connection where to find the variable objectMögliche Werte: <TabItem b4A Verbindungen>
- Package (
package
) - Name of the package
- VersionMail.DecrMailHeader=the file contains the mail header that will be prepended to each mail (
version
) - prints version of best4Automic
Output
The output can be to a static or an XML variable. Theoretically, both at the same time.
Static variable
The static variable, which contains the result of the analysis, stores the following values in the individual columns:
-
Key: Name of the package found
-
Value 1: Name of the package found
-
Value 2: Dependency definition for the specified package
-
Value 3: Complete dependency definition of the package found
-
Value 4: If a version was specified when the module was called, the status of the dependency is specified here
- OK: The version comparison matches the installed version
- WRONG_VERSION: The version comparison does not match the installed version
XML variable
If the result is written to an XML variable, the data is saved in the following format.
<best4Automic version="5.3.0">
<pm>
<requiredBy>
<packages>
<package name="B4A.PM" status="OK" version="1.0.0">
<dependencies>
<dependency name="B4A.BASE" operator=">=" version="1.1.0"/>
<dependency name="BBC.FILEOPS" operator="~=" version="1.0.0"/>
<dependency name="BBC.SHARED" operator="~=" version="1.0.0"/>
<dependency name="B4A.UTIL" operator="~=" version="1.0.0"/>
<dependency name="B4A.WEB" operator="~=" version="1.0.0"/>
</dependencies>
</package>
<package name="B4A.WEB" status="WRONG_VERSION" version="1.0.0">
<dependencies>
<dependency name="B4A.BASE" operator=">=" version="1.0.0"/>
</dependencies>
</package>
<package name="B4A.UTIL" status="WRONG_VERSION" version="1.0.0">
<dependencies>
<dependency name="BBC.SHARED" operator="~=" version="1.0.0"/>
<dependency name="B4A.BASE" operator="~=" version="1.0.0"/>
</dependencies>
</package>
</packages>
</requiredBy>
</pm>
</best4Automic>