Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.Description
"[overwrite] = TRUE" for zip file with Drush 5 overwrites instead of merging as in Drush make 2.3
It's not merging with Drush 5.10.0.
It was merging fine with Drush 4.5 and Drush make 2.3.
Example of the objective
libraries[kplatforms_tinymce][directory_name] = tinymce
libraries[kplatforms_tinymce][download][type] = get
libraries[kplatforms_tinymce][download][url] = https://github.com/downloads/tinymce/tinymce/tinymce_3.4.9_jquery.zip
libraries[kplatforms_tinymce_fr][directory_name] = tinymce
libraries[kplatforms_tinymce_fr][download][type] = get
libraries[kplatforms_tinymce_fr][download][url] = http://www.tinymce.com/i18n3x/index.php%3Fctrl%3Dexport%26act%3Dzip%26la%5B%5D%3Dfr%26pr_id%3D7%26la_export%3Djs
libraries[kplatforms_tinymce_fr][overwrite] = TRUE
Impacted
includes/7/modules.make:libraries[kplatforms_tinymce_fr][overwrite] = TRUE
includes/6/modules.make:libraries[kplatforms_tinymce_fr][overwrite] = TRUE
Workaround
To manually download what is missing:
cd sites/all/libraries/tinymce
wget http://www.tinymce.com/i18n3x/index.php%3Fctrl%3Dexport%26act%3Dzip%26la%5B%5D%3Dfr%26pr_id%3D7%26la_export%3Djs
unzip index.php\?ctrl\=export\&act\=zip\&la\[\]\=fr\&pr_id\=7\&la_export\=js
mv tinymce_language_pack/* ./
rm -fr tinymce_language_pack index.php\?ctrl\=export\&act\=zip\&la\[\]\=fr\&pr_id\=7\&la_export\=js
References
Issue upstream for drush:
May be related to:
- #1134326: Allow a DrushMakeProject to be installed in a non empty directory (Port to Drush 5)
- #628198: Allow library downloads into a directory that already exists
- #1539076: drush make overrides modules folder with downloaded modules
Internal reference numbers:
- Redmine 12386
- RT 286497
What to do when is resolved
Uncomment the libraries using "[overwrite] = TRUE". See what is impacted above.










Comments
Comment #1
j0nathan CreditAttribution: j0nathan commentedSome code from /usr/share/php/drush/commands/make/make.project.inc
Comment #2
j0nathan CreditAttribution: j0nathan commentedComment #3
j0nathan CreditAttribution: j0nathan commentedComment #4
j0nathan CreditAttribution: j0nathan commentedComment #5
j0nathan CreditAttribution: j0nathan commentedComment #6
j0nathan CreditAttribution: j0nathan commentedBased on https://drupal.org/files/drush-copy-overwrite-1539076-14.patch from https://drupal.org/comment/5982698#comment-5982698 with
I tried some syntax without success
Comment #7
j0nathan CreditAttribution: j0nathan commentedComment #8
j0nathan CreditAttribution: j0nathan commentedImpacted:
Comment #9
j0nathan CreditAttribution: j0nathan commentedI commented the libraries which use overwrite as a temporary workaround.
http://drupalcode.org/project/kplatforms.git/commit/455508b
http://drupalcode.org/project/kplatforms.git/commit/5b00e72
Comment #10
j0nathan CreditAttribution: j0nathan commentedTo manually download what is missing:
Drupal 7 and 6 :
Drupal 6 only :
Comment #11
j0nathan CreditAttribution: j0nathan commentedI opened an issue upstream for drush:
https://github.com/drush-ops/drush/issues/295
Comment #12
j0nathan CreditAttribution: j0nathan commentedComment #13
j0nathan CreditAttribution: j0nathan commentedI tried with drush 5.10 from debian package and with drush 6.3-dev from git.
I test with Drupal 7 makefiles (modules.make).
It seems "[overwrite] = TRUE" for only one file (geshi_puppet) works with both drush version.
It seems "[overwrite] = TRUE" to uncompress a zip file does not work with both drush version.
Here is the part of the makefile I used for geshi_puppet without overwrite:
Here is the part of the makefile I used for geshi_puppet with overwrite:
Here is the part of the makefile I used for tinymce_fr without overwrite:
Here is the part of the makefile I used for tinymce_fr with overwrite:
Drush 5.10 without overwrite for tinymce has the directory jscripts:
Drush 5.10 with overwrite for tinymce does not have the directory jscripts but has the directory langs:
Drush 6.3-dev without overwrite for tinymce has the directory jscripts:
Drush 6.3-dev with overwrite for tinymce does not have the directory jscripts but has the directory langs:
The file puppet.php for geshi is available on the two platforms with overwrite and this is the only difference, which is the expected behaviour:
Comment #14
j0nathan CreditAttribution: j0nathan commentedI tried with drush 5.10 from debian package.
I test with Drupal 6 modules.make.
It seems "[overwrite] = TRUE" for only one file works.
It seems "[overwrite] = TRUE" to uncompress a zip file does not work.
NB:
sans (fr) = without (en)
avec (fr) = with (en)
Comment #15
j0nathan CreditAttribution: j0nathan commentedComment #16
sluc23 CreditAttribution: sluc23 commentedHi,
I confirm the issue using drush version 5.9
[overwrite ] option seems pretty useless after drush4 :(