1 --- rpm-5.4.10/rpmio/macro.c~ 2012-09-17 14:07:24.201198493 +0200
2 +++ rpm-5.4.10/rpmio/macro.c 2012-09-17 18:10:28.221354435 +0200
6 *compressed = COMPRESSED_NOT;
7 +#if defined(RPM_VENDOR_PLD)
9 + * Workaround for misleading message:
10 + * error: File %PATCH666: No such file or directory
11 + * It happens when there is no "PatchXXX: " definition
12 + * and spec contains commented out %patchXXX macro
13 + * http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/5d3a3ea257d7f88e59d0ad93c20cc8448fb42f3d
15 + if ((strlen(file) > 6) && (strncasecmp(file, "%PATCH", 6) == 0))
19 #if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_FEDORA) || defined(RPM_VENDOR_MANDRIVA) /* extension-based-compression-detection */
20 file_len = strlen(file);