Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
in my drush make:
libraries[CAS][download][type] = "file"
libraries[CAS][download][url] = "http://downloads.jasig.org/cas-clients/php/current/CAS-1.2.2.tgz"
this produces:
sites/all/libraries/CAS/CAS-1.2.2/
however for the cas module to be happy I need to have:
sites/all/libraries/CAS/
is there any way to do this with drush make? or do i need to re-package CAS-1.2.2.tgz without a top-level directory to get the results I'm looking for?
thanks!
Comments
Comment #1
firebus CreditAttribution: firebus commentedComment #2
helmo CreditAttribution: helmo commentedThe package.xml file is somewhat unfortunate here.
If it were not there then adding
libraries[CAS][download][directory_name] = "CAS"
would probably do the trick.The current code in _drush_make_download_file_move() is the reason for this.
Comment #3
firebus CreditAttribution: firebus commentedarg, i didn't even realize there was that top-level package.xml, thank you.
that makes this a foolish use case for drush - maybe it would make sense to extend the cas project to accept a libraries structure that drush can comply with.
thanks again for your input!