Difference between revisions of "Package dependencies"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
m
Line 1: Line 1:
"Package dependencies" (available in WPKG 0.9.6 and later) allows a 'depends' entry in the 'package' node:
+
Packages can depend on each other (i.e., you have to install Firefox before installing some FIrefox plugin etc.).
  
<package id="packageA" name="A test package" depends="packageB"/>
+
The format is very simple, and reminds the one used for [[profile dependencies]]:
+
 
<package id="packageB" name="Another test package"/>
+
 
 +
    <package id=...>
 +
        <depends package-id="my-package"/>
 +
        <depends package-id="other-package"/>
 +
        ...
 +
    </package>  
  
I use this to ensure that a package "winxpupdates" is installed by setting 'execute="always"' in the package entry. My winxpupdates package depends on all the hotfixes released by Microsoft: if I add another package to the list of dependencies this is checked each time the machine boots. The new package listed in the 'depends' entry should then be installed on the machine in the usual way (Frank Lee).
 
  
 
[[category:Documentation]]
 
[[category:Documentation]]

Revision as of 21:49, 9 April 2006

Packages can depend on each other (i.e., you have to install Firefox before installing some FIrefox plugin etc.).

The format is very simple, and reminds the one used for profile dependencies:


   <package id=...>
       <depends package-id="my-package"/>
       <depends package-id="other-package"/>
       ...
   </package>