apm_read_package_info_fileapm_read_package_info_file path
Defined in packages/acs-core/apm-procs.tclReads a .info file, returning an array containing the following items:
path : a path to the file read
mtime : the mtime of the file read
provides and $requires : lists of dependency
information, containing elements of the form [list $url $version]
owners : a list of owners containing elements of the form
[list $url $name]
files : a list of files in the package,
containing elements of the form [list $path
$type]
includes : a list of included packages
- Element and attribute values directly from the XML specification:
package.key ,
package.url ,
name (the version name, e.g., 3.3a1 ,
url (the version URL),
package-name ,
option ,
summary ,
description ,
distribution ,
release-date ,
vendor ,
group ,
vendor.url , and
description.format .
This routine will typically be called like so:
array set version_properties [apm_read_package_info_file $path]
to populate the version_properties array.
If the .info file cannot be read or parsed, this routine throws a
descriptive error.
- Parameters:
-
path
|