]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-5.4.4-add-_specfile-macro.patch
- make sure that the output buffer gets truncated after use, otherwise
[packages/rpm.git] / rpm-5.4.4-add-_specfile-macro.patch
1 --- rpm-5.4.4/build/parseSpec.c.specfile~       2011-11-11 13:41:29.137827186 +0100
2 +++ rpm-5.4.4/build/parseSpec.c 2011-11-11 13:42:12.938874762 +0100
3 @@ -542,6 +542,7 @@ int parseSpec(rpmts ts, const char *spec
4       *          /.././../usr/../bin//./sh (XXX FIXME: dots not handled yet)
5       */
6      spec->specFile = rpmGetPath(specFile, NULL);
7 +    addMacro(spec->macros, "_specfile", NULL, spec->specFile, RMIL_SPEC);
8      spec->fileStack = newOpenFileInfo();
9      spec->fileStack->fileName = xstrdup(spec->specFile);
10  
This page took 0.022143 seconds and 3 git commands to generate.