{"action":"opened","issue":{"url":"https://api.github.com/repos/netresearch/composer-patches-plugin/issues/11","labels_url":"https://api.github.com/repos/netresearch/composer-patches-plugin/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/netresearch/composer-patches-plugin/issues/11/comments","events_url":"https://api.github.com/repos/netresearch/composer-patches-plugin/issues/11/events","html_url":"https://github.com/netresearch/composer-patches-plugin/issues/11","id":71122330,"number":11,"title":"Use composer-patches-plugin for Magento (1)","user":{"login":"ottosmittenaar","id":5123953,"avatar_url":"https://avatars.githubusercontent.com/u/5123953?v=3","gravatar_id":"","url":"https://api.github.com/users/ottosmittenaar","html_url":"https://github.com/ottosmittenaar","followers_url":"https://api.github.com/users/ottosmittenaar/followers","following_url":"https://api.github.com/users/ottosmittenaar/following{/other_user}","gists_url":"https://api.github.com/users/ottosmittenaar/gists{/gist_id}","starred_url":"https://api.github.com/users/ottosmittenaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ottosmittenaar/subscriptions","organizations_url":"https://api.github.com/users/ottosmittenaar/orgs","repos_url":"https://api.github.com/users/ottosmittenaar/repos","events_url":"https://api.github.com/users/ottosmittenaar/events{/privacy}","received_events_url":"https://api.github.com/users/ottosmittenaar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-26T21:24:27Z","updated_at":"2015-04-26T21:24:27Z","closed_at":null,"body":"Hi,\r\n\r\nI really like your Composer patch plug-in and would like to use it for my Magento projects. I created the following composer.json.\r\n\r\n```json\r\n{\r\n\t\"name\": \"shopbase-magento/patches\",\r\n\t\"version\": \"0.1.0\",\r\n\t\"type\": \"patches\",\r\n\t\"require\": {\r\n\t\t\"netresearch/composer-patches-plugin\": \"~1.0\"\r\n\t},\r\n\t\"extra\": {\r\n\t\t\"patches\": {\r\n\t\t\t\"magento/core\":\t {\r\n\t\t\t\t\"1.9.1.0\": {\r\n\t\t\t\t\t\"SUPEE-1533_EE_1.12_v1.patch\": {\r\n\t\t\t\t\t\t\"title\": \"SUPEE-1533 - Addresses two potential remote code execution exploits. - Added Oct 3, 2014\",\r\n\t\t\t\t\t\t\"url\": \"http://shopbase.nl/patches/SUPEE-1533_EE_1.12_v1.patch\"\r\n\t\t\t\t\t},\r\n\t\t\t\t\t\"SUPEE-5345_CE_1.7.0.2_v1.patch\": {\r\n\t\t\t\t\t\t\"title\": \"SUPEE-5344 - Addresses a potential remote code execution exploit. - Added Feb 9, 2015\",\r\n\t\t\t\t\t\t\"url\": \"http://shopbase.nl/patches/SUPEE-5345_CE_1.7.0.2_v1.patch\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n```\r\n\r\nBut I get an error when running. This is probably because Magento (1) is not fully supporting composer. I'm therefor using the 'magento-hackathon/magento-composer-installer' module.\r\n\r\nError:\r\n\r\n```\r\n[Netresearch\\Composer\\Patches\\PatchCommandException]                         \r\n  Patch SUPEE-1533_EE_1.12_v1.patch would fail!                                \r\n  Error executing command \"patch -f -p1 --no-backup-if-mismatch -r - --dry-ru  \r\n  n\":                                                                          \r\n  can't find file to patch at input line 8                                     \r\n  Perhaps you used the wrong -p or --strip option?                             \r\n  The text leading up to this was:                                             \r\n  --------------------------                                                   \r\n  |SUPEE-1533 | EE_1.12 | v1 | _ | n/a | SUPEE-1533_EE_1.12_v1.patch           \r\n  |                                                                            \r\n  |__PATCHFILE_FOLLOWS__                                                       \r\n  |diff --git app/code/core/Mage/Adminhtml/Block/Dashboard/Graph.php app/code  \r\n  /core/Mage/Adminhtml/Block/Dashboard/Graph.php                               \r\n  |index c698108..6e256bb 100644                                               \r\n  |--- app/code/core/Mage/Adminhtml/Block/Dashboard/Graph.php                  \r\n  |+++ app/code/core/Mage/Adminhtml/Block/Dashboard/Graph.php                  \r\n  --------------------------                                                   \r\n  No file to patch.  Skipping patch.                                           \r\n  1 out of 1 hunk ignored                                                      \r\n  can't find file to patch at input line 21                                    \r\n  Perhaps you used the wrong -p or --strip option?                             \r\n  The text leading up to this was:                                             \r\n  --------------------------                                                   \r\n  |diff --git app/code/core/Mage/Adminhtml/controllers/DashboardController.ph  \r\n  p app/code/core/Mage/Adminhtml/controllers/DashboardController.php           \r\n  |index eebb471..f9cb8d2 100644                                               \r\n  |--- app/code/core/Mage/Adminhtml/controllers/DashboardController.php        \r\n  |+++ app/code/core/Mage/Adminhtml/controllers/DashboardController.php        \r\n  --------------------------                                                   \r\n  No file to patch.  Skipping patch.                                           \r\n  1 out of 1 hunk ignored\r\n```\r\n\r\nI hope you can help with this. I really would like to use your module.\r\n\r\nBest regards,\r\nOtto Smittenaar"}}