drupal install/dependencies
I added a small include file as an example phase/stage runner for the drupal install effort. It uses the dependency.inc from drpkg what I presented in Amsterdam. http://dev.bryght.com/t/file/drpkg/drpkg.inc http://dev.bryght.com/t/file/drpkg/include/dependency.inc I keep those in the bryght svn repository, thanks Adrian, since it is too early to even try it for core, especially since 4.7 is around the corner, although this thing isn't going to interfere at all with any normal drupal services. The main idea is to execute the different phase callbacks, like install, configure, ... in dependency order. The latter is ensured by dependency.inc I presume that there exists a PACKAGES file, akin to debian's one, describing the collection of packages and their dependencies, and that each package has a set of files package_name.phase, for example image.install, implementing the callback, validation and error callbacks required. (sounds bad, isn't it) http://dikini.net/08.12.2005/an_initial_phase_runner_for_drupal_install Please use this thread on the web: http://drupal.org/node/22472#comment-74481 Any opinions? Cheers Vlado
On 08 Dec 2005, at 11:32 AM, vlado wrote:
I added a small include file as an example phase/stage runner for the drupal install effort. It uses the dependency.inc from drpkg what I presented in Amsterdam.
I should mention that we now have some of the install api in core, most notably the update process. All modules can now use the update process of drupal core, by shipping .install files. The big issue is, we aren't allowing modules to be installed via the install api yet , and it is a very simple function... There are some issues with implementing the install() function without dependencies and phases though, especially when install profiles are involved. Bryght and civicspace have written and tested a large amount of install files for modules with the current install api though, and if we are going to allow updates of modules, we should at the very least allow installations too. Here are our .install files so far. Keep in mind.. these are just for modules that have db schemas. : aggregator2/aggregator2.install audio/audio.install banner/banner.install buddylist/buddylist.install ecommerce/address/address.install ecommerce/cart/cart.install ecommerce/contrib/auction/auction.install ecommerce/contrib/authorize_net/authorize_net.install ecommerce/contrib/exact/exact.install ecommerce/file/file.install ecommerce/parcel/parcel.install ecommerce/payment/payment.install ecommerce/product/product.install ecommerce/shipping/shipping.install ecommerce/tangible/tangible.install ecommerce/tax/tax.install event/event.install event/location.install filestore2/filestore2.install flexinode/flexinode.install forms/forms.install fscache/fscache.install helpedit/helpedit.install htmlarea/htmlarea.install img_assist/img_assist.install jabber/jabber.install listhandler/listhandler.install location/location.install mailhandler/mailhandler.install notify/notify.install og/og.install privatemsg/privatemsg.install project/project.install quotes/quotes.install rsvp/rsvp.install subscriptions/subscriptions.install survey/survey.install tinymce/tinymce.install trackback/trackback.install weblink/weblink.install (ported from 4.5) -- Adrian Rossouw Drupal developer and Bryght Guy http://drupal.org | http://bryght.com
participants (2)
-
Adrian Rossouw -
vlado