apm_read_package_info_file (public)
apm_read_package_info_file path
Defined in packages/acs-tcl/tcl/apm-xml-procs.tcl
Reads a .info file, returning an array containing the following items:
This routine will typically be called like so:
path
: a path to the file readmtime
: the mtime of the file readprovides
,embeds
,extends
, andrequires
: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]
NOTE: Files are no longer stored in info files but are always retrieved directly from the filesystem. This element in the array will always be the empty list.callbacks
: an array list of callbacks of the package on the form[list callback_type1 proc_name1 callback_type2 proc_name2 ...]
- Element and attribute values directly from the XML specification:
package.key
,package.url
,package.type
package-name
,pretty-plural
initial-install-p
singleton-p
auto-mount
name
(the version name, e.g.,3.3a1
),url
(the version URL),option
,summary
,description
,release-date
,vendor
,group
,vendor.url
, anddescription.format
,maturity
,maturity_text
.to populate thearray set version_properties [apm_read_package_info_file $path]version_properties
array.If the .info file cannot be read or parsed, this routine throws a descriptive error.
- Parameters:
- path (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- apm__test_info_file, files__check_info_files