使用drupal也有一段时间了,当看到有补丁时一向使用手工来打
--- drush_make.download.inc 2 Jun 2010 15:57:21 -0000 1.1.2.32
+++ drush_make.download.inc 4 Jun 2010 13:25:33 -0000
@@ -96,7 +96,7 @@ class DrushMakeDownload_Get extends Drus
drush_shell_exec('tar -tf %s', $filename);
$info = drush_shell_exec_output();
if ($info) {
- list($first_line) = drush_shell_exec_output();
+ $first_line = $info[count($info) - 1];
list($directory) = explode('/', $first_line);
drush_make_cd($this->project->tmp_path, 'tar -xf %s', $filename);
drush_op('unlink', $filename);
但有一天看到有个补丁将近8K,怎么办?特地找了一些.patch文件的使用
最新评论