Software Distributor Administration Guide for HP-UX 11i
Creating Software Packages
Packaging the Software (swpackage)
Chapter 10 349
4. Performing Disk Space Analysis (DSA)
swpackage verifies that the target depot has enough free disk space
to package the selected products.
• If adequate disk space is available for the packaging operation to
proceed, swpackage writes a note to the log file to note the impact
on disk space.
• An error results if the package will encroach into the disk’s
minfree space.
• An error results if the package phase requires more disk space
than is available.
•If you set the enforce_dsa command option to false, swpackage
changes disk space errors to warnings and continues. This lets
you cross into the minfree space to complete a packaging
operation.
Phase III: Build When packaging a product, if the target depot does not exist, swpackage
creates it. If it does exist, swpackage will merge new product(s) into it.
For each different version of the product, a directory is created using the
defined product tag attribute and a unique instance number (instance
ID) for all the product versions that have the same tag.
Before a new storage directory is created, swpackage checks to see if this
product version has the same identifying attributes as an existing
product version.
If all the identifying attributes match, you are re-packaging (modifying)
an existing version. Otherwise, swpackage creates a new version in the
target distribution.
The packaging process uses an explicit ordering to avoid corrupting the
target distribution if a fatal error occurs. Each product is packaged in its
entirety and when all specified products have been packaged
successfully, the distribution’s global INDEX file is built/rebuilt. Within
each product construction, the following order is adhered to:
1. Check if the product is new or already exists. If it is new, create the
product’s storage directory.
2. For each fileset in the product, copy the fileset’s files into their
storage location (within the product’s storage directory), and create
the fileset’s catalog (database information) files.