astorm / MagentoTarToConnect

A small shell script to automatically package tar archives into Magento's Connect 2.0 format.
80 stars 24 forks source link

Add ability to configure php extension dependencies #4

Closed jlas closed 11 years ago

jlas commented 11 years ago

The Magento Connect packager utility allows for configuring the required PHP extension dependencies. However, this was missing from the MagentoTarToConnect utility.

astorm commented 11 years ago

Thanks for the idea!

Have you successfully used to the successfully build an extension and submit it to the Magento Connect store? What happens if the extension dependency information is missing?

jlas commented 11 years ago

Hey there, thanks for making this awesome tool.

If the extension dependency configuration is missing (i.e. the 'extensions' key is missing from example-config.php), or if it is just an empty array (the current example setting), nothing new will happen.

Haven't tried it using the Magento Connect store, but have tested it by installing packages locally through the Connect installer (on 1.7.0.2 & 1.8) - works just like if I packaged it using the UI packager.

Unfortunately, "works the same" means PHP extension versions aren't checked. As you can see in the current 1.8 source the Connect installer just checks the extension name. Either way the XML format looks right, so hopefully the versions will be checked with a future fix.