netz98/n98-magerun — pull request #343 by astorm (2014-06-04 20:04:12+00:00)
Title: Adds Command for External Magento Connect Validation

(Grandpa thinks he's got this pull request pointed at the right branch, let me know if I mucked it up again)

This pull request adds an `extension:validate` command to `n98-magerun`. This command provides **external** validation of a system's Magento Connect instance.

Magento Connect has an ongoing problem with PHP file permissions — it's possible to install an extension, have Connect report the extension as installed, but behind the scenes Magento Connect has failed to write out a file due to permissions issues. These errors get swallowed by the `@` operator.

This command uses the `download/cache.cfg` file to grab a list of packages installed via Magento Connect, and validates the file manifest. It looks for both the existence of the file, and checks the file's hash. By default the list of Magento included packages is omitted, since many users don't use connect to manage their Magento versions. More info in the help, suggestions for improvements/more tests prior to merging are more than welcome.