Closed (duplicate)
Project:
Provision CiviCRM
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Apr 2011 at 21:21 UTC
Updated:
29 Apr 2011 at 21:29 UTC
The example make file doesn't work properly.
The civicrm-l10n code is supposed to be downloaded into the civicrm module directory, but drush_make generates an error if it is instructed to download something into a directory that already has something in it (and the civicrm module is already in it).
drush_make now stops when it encounters an error, requiring the files to be manually copied from the tmp directory.
If you encounter this error, you can resolve with something along the lines of
aegir@nicolas:~/platforms/civicrm-6.20-3.3.1-1.0$ mv /tmp/drush_make_tmp_1303333954/__build__/* .
aegir@nicolas:~/platforms/civicrm-6.20-3.3.1-1.0$ mv /tmp/drush_make_tmp_1303333954/__build__/.htaccess .
aegir@nicolas:~/platforms/civicrm-6.20-3.3.1-1.0$
Then, manually download the l10n stuff:
cd sites/all/modules/
wget http://downloads.sourceforge.net/project/civicrm/civicrm-stable/3.3.1/civicrm-3.3.1-l10n.tar.gz
tar -xzvf civicrm-3.3.1-l10n.tar.gz
Comments
Comment #1
mcdruid commentedTry using the 'subdir' option to tell drush make to put the civicrml10n module inside the civicrm directory - this syntax seems to work:
projects[civicrm][type] = "module"
projects[civicrm][download][type] = "get"
projects[civicrm][download][url] = "http://sourceforge.net/projects/civicrm/files/civicrm-latest/4.0.beta3/c..."
projects[civicrml10n][type] = "module"
projects[civicrml10n][subdir] = "civicrm"
projects[civicrml10n][download][type] = "get"
projects[civicrml10n][download][url] = "http://sourceforge.net/projects/civicrm/files/civicrm-latest/4.0.beta3/c..."
[edit] sorry - my mistake; this will get you past the error, but you end up with a civicrml10n directory inside sites/all/modules/civicrm which contains the l10n and sql directories. So you'd still need to move these into the right place manually. AFAICS there is an assumption in drush make that it's never desirable to untar an archive over the top of an existing directory. I suppose provision_civicrm could look for the civicrml10n code and move it into the right place pre/post-installation, but this would be a workaround/hack, and you'd have to establish the "correct wrong" location to put civicrml10n where provision_civicrm would look for it [/edit]
Comment #2
jmcclelland commentedI think we can close issue. I don't think it's fixable in provision_civicrm and I just saw the same request made against drush make, which seems to be the appropriate place for it.
jamie