[packages/wpmu] Fix applying patches.

arekm arekm at pld-linux.org
Tue Jul 15 10:11:02 CEST 2025


commit 4d24ad82e59b7ed80e3b41386008d5a18be550c7
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Jul 15 03:30:49 2025 +0200

    Fix applying patches.

 wpmu.spec | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/wpmu.spec b/wpmu.spec
index 5a1c9a9..066b5a0 100644
--- a/wpmu.spec
+++ b/wpmu.spec
@@ -123,7 +123,7 @@ mv wordpress-mu/* .; rmdir wordpress-mu
 # undos
 find '(' -name '*.php' -o -name '*.js' -o -name '*.html' ')' -print0 | xargs -0 %{__sed} -i -e 's,\r$,,'
 
-%patch0 -p1
+%patch -P0 -p1
 
 rm wp-content/themes/index.php
 rm wp-content/mu-plugins/index.php
@@ -152,12 +152,12 @@ find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
 # Extract $wp_queries to separate file so these could be re-loaded when blog changes
 sed -ne '/global $wp_queries;/,/WP_FIRST_INSTALL$/p' wp-admin/includes/schema.php > wp-admin/includes/schema-wp_queries.php
 sed -i -e '/global $wp_queries;/,/WP_FIRST_INSTALL$/d' wp-admin/includes/schema.php
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
-%patch6 -p1
+%patch -P1 -p1
+%patch -P2 -p1
+%patch -P3 -p1
+%patch -P4 -p1
+%patch -P5 -p1
+%patch -P6 -p1
 
 # cleanup backups after patching
 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wpmu.git/commitdiff/4d24ad82e59b7ed80e3b41386008d5a18be550c7



More information about the pld-cvs-commit mailing list