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.
Coming back to Sasson and this caught me again so I thought I'd get around to filling an issue :)
Comment | File | Size | Author |
---|---|---|---|
#5 | drush-sns-sass-path-1744988.patch | 2.54 KB | mxmilkiib |
Comments
Comment #1
mxmilkiib CreditAttribution: mxmilkiib commentedComment #2
tsi CreditAttribution: tsi commentedThis was implemented long time ago, so I don't know what to say...
This is how we do it (/includes/sasson.drush.inc) :
can you explain what exactly is happening ?
Comment #3
mxmilkiib CreditAttribution: mxmilkiib commentedApologies, was rather tired last night, got myself mixed up.
The subtheme installs into the right place, but the sasson_watch_file path in the newsubtheme.info is incorrect.
settings[sasson_watch_file] = 'sites/all/themes/test/stylesheets/test.scss'
when test is in sites/mysite.com/themes/test
sasson.drush.inc has;
drush_op('sasson_file_str_replace', "$subtheme_path/$machine_name.info", 'SUBTHEME', "$machine_name");
A more specific path replacement at that point would sort it.
Comment #4
tsi CreditAttribution: tsi commentedI see, so the issue is only with an editable placeholder that is only there as an example.
It *is* a valid issue but no biggie :)
Patches anyone ?
Comment #5
mxmilkiib CreditAttribution: mxmilkiib commentedMy first patch, think this does it right..
n.b. It didn't activate or set the theme correctly before, and it still doesn't yet, but "drush_pm_enable($machine_name);" looks legit..
Comment #6
tsi CreditAttribution: tsi commentedSorry, don't know how I've missed this.
Committed and fixed. thanks.
http://drupal.org/commitlog/commit/31168/8092dd353d1715d7c5c1379ea867c78...