Skip to content
frositPublic

About

A Small Magento Patch Utility

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

Magento Patch finder (Magepatch)

Branch Status Version
Master Build Status ---------
Staging Build Status ---------

The following CLI tool can aid with patch management of your Magento 1 store. The console utility/phar file basically finds the right patches for your Magento installation based on the stores' version and edition. It contains an index of all patches and uses magento-patches repository as it's data source. This data is aggregated and reviewed before added to the index. If you spot an issue, you can modify the json file in the res directory.

Note: work in progress, feel free to contribute

Install

wget -q -O magepatch.phar https://magepatch.fros.it/magepatch.phar && chmod +x magepatch.phar

Build (dev)

git clone https://github.com/frosit/magepatch.git && \
cd magepatch && make install && make build

Commands

  • patches:find
    • finds patches based on your version number
    • compares towards applied.patches.list
    • allows to download missing patches
  • patches:show-applied
    • Show what is applied and what not
  • patches:extract-diff
    • Extracts the .diff / .patch parts from the patch

Troubleshooting

It should work if you drop it into a bin folder and navigate to a mage root folder. Additionally you could keep the .phar in your mage root as well. Else you could use these options.

  • --mage=[directory] | set a fixed path to the mage root dir.
  • --nomage | don't load mage, in case you want to quickly check the amount of indexed patches or something

To Do

  • Review and clean code
  • Remove deprecated code
  • Create tests with CI
    • Fix broken tests
    • extend tests to other classes
    • extend spec
    • add codecov
  • improve exception handling
  • Show phar version
  • phar selfupdate
  • Fix travis Magento install script
  • Add patch installers to tests, or applied.patches fixtures
  • Extend documentation
  • Convert bullets to issues
  • Magerun integration?

codecov

Author

Fabio Ros - FROSIT (@frosit_it)

About

A Small Magento Patch Utility

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages