]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-remove-misleading-missing-patch-message.patch
- rel 45
[packages/rpm.git] / rpm-remove-misleading-missing-patch-message.patch
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
3 @@ -3054,6 +3054,17 @@
4  #endif
5  
6      *compressed = COMPRESSED_NOT;
7 +#if defined(RPM_VENDOR_PLD)
8 +    /*
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
14 +     */
15 +    if ((strlen(file) > 6) && (strncasecmp(file, "%PATCH", 6) == 0))
16 +       return 0;
17 +#endif
18  
19  #if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_FEDORA) || defined(RPM_VENDOR_MANDRIVA) /* extension-based-compression-detection */
20      file_len = strlen(file);
This page took 0.021949 seconds and 3 git commands to generate.