Makes it possible to purge + force, so delete a platform even if
- folder is missing
- provision "thinks" there are still sites in there etc.
Basically i remove the drupal bootstrap as it is not primary needed and only check for sites if purge is not set ( not set by default ).
For the UI part check the issue http://drupal.org/node/1074918
Optional:
add clie docu for purge
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | purgeoption.patch | 2.12 KB | eugenmayer |
| purgeoption.patch | 1.6 KB | eugenmayer |
Comments
Comment #1
anarcat commentedThere is a --force flag in drush already that we use elsewhere (for example in provision-backup) and that I think we should reuse here, so I encourage you to use that too..
Also, try to use "false" instead of 0 when you mean false (as in the default value for that flag).
I wonder if provision_drupal_find_sites() works without bootstrapping the platform or changing that bootstrap level will break site deletion?
Otherwise this seems like a good idea.
Comment #2
eugenmayer commenteddrupal_find_sites does not work without, will always return "found one".
i will try to reuse force, and report back. Thank
Comment #3
anarcat commentedI'm sorry, I don't understand that.
Comment #4
eugenmayer commentedNo it does not work without a bootstrap, will always return "found". but in addition its one task of purge (force) to delete in any case.
Comment #5
eugenmayer commentedincorporated our suggestion anarcat and fixed bootstrap for "site check".
Comment #6
eugenmayer commentedwoops, patch
Comment #7
anarcat commentedIncredibly enough, this patch still applies, and looks about sound.
patch c0d53c7 applied to 2.x for a testing period, merge when tested.
Comment #8
j0nathan commentedSubscribing.
Comment #9
anarcat commentedmerged in 1.x.