Put the macro evaluation in spec comments back.
- '#' at the beginning doesn't need to always represent comment in spec but can be part of the embedded bash script (RhBug:594672 - comment 6)
This commit is contained in:
parent
0e04c09d48
commit
a2b999df2e
|
@ -130,17 +130,6 @@ 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++;
|
||||
|
|
Loading…
Reference in New Issue