Function parsePackageInfo
Parses the actions in package-info.xml file from packages.
- package should be an xmlArray with package-info as its base.
- testing_only should be true if the package should not actually be applied.
- method can be upgrade, install, or uninstall. Its default is install.
- previous_version should be set to the previous installed version of this package, if any.
- does not handle failure terribly well; testing first is always better.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Package.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Package.php
|
& $packageXML |
$packageXML The info from the package-info file |
boolean |
$testing_only = true |
Whether we're only testing |
string |
$method = 'install' |
The method ('install', 'upgrade', or 'uninstall') |
string |
$previous_version = '' |
The previous version of the mod, if method is 'upgrade' |
array
|
An array of those changes made. |