I think it would be a good to be able to specify md5 checksums of downloads and have drush make verify them. update.drupal.org and features servers already provide md5 checksums for files, it is straight forward to verify these on download. It should also be possible to specify and verify md5 hashes for tarballs, patches and libraries. There may also be cases where a user may want to disable the verification of these checksums.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | drush_make-882236-md5-verification-14.patch | 13.29 KB | skwashd |
| #7 | drush_make-882236-md5-verification-1.patch | 8.43 KB | skwashd |
| #1 | drush_make-882236-md5-verification.patch | 8.43 KB | skwashd |
Comments
Comment #1
skwashd commentedPatch to do the above. Docs updated too. I would write some test for this, but the drush_make test framework doesn't seem to support failing tests.
I forgot to mention in the initial content, if a md5 hash is specified for a project on updates.drupal.org or a feature server is trumps the server provided value. This seemed to be the sanest way of dealing with this.
Comment #2
skwashd commentedForgot to update status
Comment #3
Caseledde commentedI tried to run your patch, but i wasn't very successful.
My Mini-Drush-Make-Script:
Drush Make still install the core. It seems that the md5 option has no effect regardless of which value.
What is wrong?
Comment #4
skwashd commentedAre you sure you've applied the patch properly? I ran your make file here and got:
Comment #5
Caseledde commentedI checked again and now everything works fine.
thx for the patch.
Comment #6
kars-t commentedHi
Caseledde and me did test the patch and we think the patch is nice and running well. Thanks! :)
But there are some minor coding style things that are not conform to the drupal standards:
I think your coding style is nice and clean and there is nothing against it in the standards. But the rest of the module doesn't use spaces after and before the if( ) braces. I would advise to change this.
Please do a linebreak before else {
http://drupal.org/coding-standards#controlstruct
Standard is like this:
http://drupal.org/coding-standards#controlstruct
Powered by Dreditor.
Otherwise its RTBC.
Comment #7
skwashd commented@kars-T Thanks for the review. I'd never noticed the coding standard for else before - geez that looks ugly. Anyway it is rerolled with the whitespace around the brackets cleaned up and should now comply with the coding standard.
Comment #8
Caseledde commentedWorks and its RTBC.
Comment #9
agileware commentedSubscribe. Great work :)
Comment #10
dmitrig01 commentedWe need a test to make sure this works. It shouldn't be very hard to write.
Comment #11
skwashd commentedI'd appreciate some guidance on how to implement failing tests using the current drush make testing framework.
Comment #12
dmitrig01 commentedbuild => FALSE i think
Comment #13
dixon_Subscribing.
Comment #14
skwashd commentedHere is the patch with the tests.
I have also include a couple of fixes/tidy ups:
* Handle missing/empty make files a little more graciously and exit earlier
* drush_make_libraries() and DrushMakeProject::applyPatches() exit early rather than having the whole method in an if()
Note: The test suite was failing before applying this patch, my included test work. I don't know what is going on there.
Comment #15
skwashd commentedForgot to set it to needs review.
Comment #16
Anonymous (not verified) commentedWorks for me:
md5.make builds
md5-fail.make fails
md5-fail.make --ignore-checksums works
Comment #17
dmitrig01 commentedAwesome, thanks