Here's my problem. I made a simple Feature file, which I want to use by downloading it from my feature server.
For some reason, when unpacking the feature tar-ball, it only unpacks the feature.inc file. The rest is left out. Other feature modules, such as some from de development seed server work fine.

Regardless of what I do, the drupal make keeps only unpacking the .inc file.

Where is the flaw?

CommentFileSizeAuthor
#12 debug_report.txt40.97 KBpitolek
#5 test-6.x-1.0-beta1.tgz738 bytespitolek

Comments

dmitrig01’s picture

Please post the output of running the drush make command with --debug

pitolek’s picture

Ok, here it is ...

Found command: make [0.04 sec]                                                                                                                                                 [bootstrap]
Calling mkdir(/tmp/drush_make_tmp_1258445588)
Created directory temporary directory /tmp/drush_make_tmp_1258445588 [0.042 sec]                                                                                                  [notice]
Project information for test retrieved. [0.349 sec]                                                                                                                            [0;33;40m[1m[ok][0m
Executing: wget 'http://fserver.myserver.nl/sites/default/files/fserver/test_feature-6.x-1.0-alfa2.tgz' -O '/tmp/drush_make_tmp_1258445588/test_feature-6.x-1.0-alfa2.tgz'       [notice]
[0.35 sec]
  --09:13:09--  http://fserver.myserver.nl/sites/default/files/fserver/test_feature-6.x-1.0-alfa2.tgz
             => `/tmp/drush_make_tmp_1258445588/test_feature-6.x-1.0-alfa2.tgz'
  Resolving fserver.myserver.nl... 62.177.xxx.xxx
  Connecting to fserver.myserver.nl|62.177.xxx.xxx|:80... connected.
  HTTP request sent, awaiting response... 200 OK
  Length: 749 [application/x-gzip]
  
      0K                                                       100%   27.62 MB/s
  
  09:13:09 (27.62 MB/s) - `/tmp/drush_make_tmp_1258445588/test_feature-6.x-1.0-alfa2.tgz' saved [749/749]
  
test downloaded from http://fserver.myserver.nl/sites/default/files/fserver/test_feature-6.x-1.0-alfa2.tgz. [0.37 sec]                                                        [0;33;40m[1m[ok][0m
Executing: gzip --list '/tmp/drush_make_tmp_1258445588/test_feature-6.x-1.0-alfa2.tgz' | awk '{print $4;}' [0.37 sec]                                                             [notice]
  uncompressed_name
  /tmp/drush_make_tmp_1258445588/test_feature-6.x-1.0-alfa2.tar
Executing: gzip -d '/tmp/drush_make_tmp_1258445588/test_feature-6.x-1.0-alfa2.tgz' [0.383 sec]                                                                                    [notice]
Executing: tar -tf '/tmp/drush_make_tmp_1258445588/test_feature-6.x-1.0-alfa2.tar' [0.393 sec]                                                                                    [notice]
  test_feature/test_feature.defaults.inc
  test_feature/test_feature.features.inc
  test_feature/test_feature.info
  test_feature/test_feature.module
Executing: tar -C '/tmp/drush_make_tmp_1258445588' -xf '/tmp/drush_make_tmp_1258445588/test_feature-6.x-1.0-alfa2.tar' [0.405 sec]                                                [notice]
Calling unlink(/tmp/drush_make_tmp_1258445588/test_feature-6.x-1.0-alfa2.tar)
Calling mkdir(/tmp/drush_make_tmp_1258445588/__build__)
Calling mkdir(/tmp/drush_make_tmp_1258445588/__build__/sites)
Calling mkdir(/tmp/drush_make_tmp_1258445588/__build__/sites/all)
Calling mkdir(/tmp/drush_make_tmp_1258445588/__build__/sites/all/modules)
Executing: mv '/tmp/drush_make_tmp_1258445588'/'test_feature/test_feature.defaults.inc' '/tmp/drush_make_tmp_1258445588/__build__/sites/all/modules' [0.417 sec]                  [notice]
Executing: mv '/tmp/drush_make_tmp_1258445588'/__build__ 'test9' [0.43 sec]                                                                                                       [notice]
Executing: rm -r '/tmp/drush_make_tmp_1258445588' [0.442 sec]                                                                                                                     [notice]
Command dispatch complete [0.453 sec]                                                                                                                                             [notice]
pitolek’s picture

Just posted my debug report. Just checked the contents of both feature files, and as it looks the feature file that DOES work, contains a first line of the folder that contains the rest of the files. The make command later moves that folder, being the first in the tar file. In the feature file that doesn't work, the first file is the .inc file, which is then the only one moved ...

Does this help?

dmitrig01’s picture

can you upload the tar file or post it somewhere where I can see it?

pitolek’s picture

StatusFileSize
new738 bytes

No problem ...

pitolek’s picture

Component: Miscellaneous » Code
Category: support » bug
dmitrig01’s picture

So what's happening is it executes this command:
tar -tf '/tmp/drush_make_tmp_1258445588/test_feature-6.x-1.0-alfa2.tar'
On most systems, the first line will be a directory name, and then lists of files. But for some reason on your system it's not doing that. I added a fix, so now it should work. Try checking out the latest 6.x-2.x-dev version from CVS:
cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -r DRUPAL-6--2 -d drush_make contributions/modules/drush_make

dmitrig01’s picture

Status: Active » Fixed

feel free to re-mark as active

pitolek’s picture

Status: Fixed » Active

Unfortunately, output en debug info is exactly the same ... any more info you might need?

dmitrig01’s picture

are you sure you checked out the latest version and put it in the right directory? Please post the new debug info (just to verify)

dmitrig01’s picture

I forgot to commit it :D Should be committed now

pitolek’s picture

StatusFileSize
new40.97 KB

Thanks for still committing it :-) The output is anyway different, the modules are now moved next to the drupal install. So it makes the following structure ...

  make_dir
        |
        |-- drupal 6.14
        |
        |-- sites

I attach the debug info for you, hope it helps ...

dmitrig01’s picture

It looks like it should be working. Unfortunately at the moment we encounter a problem where the core project needs to be listed first in the makefile, try that (will commit a fix soon).

pitolek’s picture

Funny thing is they are in that order. Content of my test make file is:

;core projecten
core = 6.x
projects[] = drupal
projects[] = cck

projects[test][location] = "http://fserver.mytest.nl/fserver"

Looks like it reads it back in reversed order ...
But thanks so far!

dmitrig01’s picture

Try now (you have to cvs up -CPRd).

pitolek’s picture

Status: Active » Fixed

Works like a charm ... thanks!

Status: Fixed » Closed (fixed)

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