When I run a make file that just installs drupal there is no .htaccess file in the site root. However when I run drush dl the .htaccess is extracted.

I assume that drush make is not deliberately ignoring the .htaccess but if this is a feature, please let me know.

I am running MAMP on OSX 10.6.

Here is the contents of my make file:

sc.make

core = 6.x

projects[] = drupal

and when I run it:

$ drush make ../build/sc.make 
Make new site in the current directory? (y/n): y
Project information for drupal retrieved.                                                                                                            [ok]
drupal downloaded from http://ftp.drupal.org/files/projects/drupal-6.14.tar.gz. 

Here is the resulting contents of my site's root directory:

$ ls -lat
total 392
drwxr-xr-x  23 tomnightingale  staff    782  7 Dec 19:40 .
drwxr-xr-x   6 tomnightingale  staff    204  7 Dec 19:14 ..
drwxr-xr-x  36 tomnightingale  staff   1224 16 Sep 12:40 modules
drwxr-xr-x   3 tomnightingale  staff    102 16 Sep 12:40 profiles
drwxr-xr-x   7 tomnightingale  staff    238 16 Sep 12:40 scripts
drwxr-xr-x   4 tomnightingale  staff    136 16 Sep 12:40 sites
drwxr-xr-x   8 tomnightingale  staff    272 16 Sep 12:40 themes
drwxr-xr-x  35 tomnightingale  staff   1190 16 Sep 12:40 includes
drwxr-xr-x  54 tomnightingale  staff   1836 16 Sep 12:40 misc
-rw-r--r--   1 tomnightingale  staff  43058 16 Sep 12:34 CHANGELOG.txt
-rw-r--r--   1 tomnightingale  staff    988 14 Sep 05:50 COPYRIGHT.txt
-rw-r--r--   1 tomnightingale  staff   1924 29 Apr  2009 MAINTAINERS.txt
-rw-r--r--   1 tomnightingale  staff  46926 27 Apr  2009 install.php
-rw-r--r--   1 tomnightingale  staff  25457 30 Mar  2009 update.php
-rw-r--r--   1 tomnightingale  staff  18048  6 Jan  2009 LICENSE.txt
-rw-r--r--   1 tomnightingale  staff   1590 10 Dec  2008 robots.txt
-rw-r--r--   1 tomnightingale  staff  15646  9 Jul  2008 INSTALL.txt
-rw-r--r--   1 tomnightingale  staff   5002  4 Jan  2008 UPGRADE.txt
-rw-r--r--   1 tomnightingale  staff    980 26 Dec  2007 index.php
-rw-r--r--   1 tomnightingale  staff   1075 26 Nov  2007 INSTALL.pgsql.txt
-rw-r--r--   1 tomnightingale  staff   1308 19 Nov  2007 INSTALL.mysql.txt
-rw-r--r--   1 tomnightingale  staff    262  9 Aug  2006 cron.php
-rw-r--r--   1 tomnightingale  staff    352 10 Dec  2005 xmlrpc.php

What is interesting is when I run makefile with -v flag and grep for '.htaccess' i get:

$ drush -vy make ../build/sc.make | grep '.htaccess'
  drupal-6.14/.htaccess

It seems the .htaccess file is extracted from the tarball fine.
It gets lost when the files are moved from the temporary drupal-6.14 directory to the root dir.

I have not made many bug reports, let me know if you need more information, I will check back.

CommentFileSizeAuthor
#1 drush_make_fix_missing_htaccess.patch550 byteskong
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kong’s picture

Hi, I just created a patch to fix the issue. Just add the -A option to the ls command used in drush_make.drush.inc and the .htaccess file should be listed and moved along with all other files.

kong’s picture

Status: Active » Needs review

Changing issue status.

tnightingale’s picture

Status: Needs review » Reviewed & tested by the community

Great, patch works for me!

Ian Ward’s picture

Patch applies fine on 6--2 for me and fixes the described problem for me as well.

dmitrig01’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

Status: Fixed » Closed (fixed)
Issue tags: -drush_make

Automatically closed -- issue fixed for 2 weeks with no activity.