Appliying patch in drupal modules

2019-03-22 10:49发布

I have an installed drupal module : revioning. To add some functionalities, someone submit a patch file in drupal site here:

http://drupal.org/node/938074

My question is how to apply patches???

My server is linux centos.

1条回答
forever°为你锁心
2楼-- · 2019-03-22 11:14

Assuming you have shell access to the server then cd to the module directory, download the patch file (e.g. wget http://drupal.org/files/issues/file.patch) and then run the command:

patch -p1 < file.patch

(replacing file.patch with the name of the patch file you've just downloaded)

There's a lot more information on applying patches here: http://drupal.org/patch/apply

查看更多
登录 后发表回答