From: Jindrich Novy Date: Fri, 21 May 2010 11:12:02 +0000 (+0200) Subject: Do not evaluate macros in spec comments (RhBug:594672) X-Git-Tag: tznext/4.11.0.1.tizen20130304~1954 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8cb7b9085c58aff778ecda18d2073af2fa7082df;p=tools%2Flibrpm-tizen.git Do not evaluate macros in spec comments (RhBug:594672) --- diff --git a/build/parseSpec.c b/build/parseSpec.c index f45022b..5d188cc 100644 --- a/build/parseSpec.c +++ b/build/parseSpec.c @@ -130,6 +130,17 @@ static int copyNextLineFromOFI(rpmSpec spec, OFI_t *ofi) char *from, *to, *p; to = spec->lbufPtr ? spec->lbufPtr : spec->lbuf; from = ofi->readPtr; + if (from) { + SKIPSPACE(from); + if (*from == '#') { + ch = ' '; + from++; + while (*from && ch != '\n') + ch = *from++; + } else { + from = ofi->readPtr; + } + } ch = ' '; while (from && *from && ch != '\n') ch = *to++ = *from++;