summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJindrich Novy <jnovy@redhat.com>2010-05-24 09:39:54 +0200
committerJindrich Novy <jnovy@redhat.com>2010-05-24 09:39:54 +0200
commita2b999df2e71dd7b595ad329e26efe80eabb9d1f (patch)
treeb9b73b6b819bb0b9694479240d4eb0e7bad5d645
parent0e04c09d4896fe6ba1431c5383bde24983ed1f1f (diff)
downloadlibrpm-tizen-a2b999df2e71dd7b595ad329e26efe80eabb9d1f.tar.gz
librpm-tizen-a2b999df2e71dd7b595ad329e26efe80eabb9d1f.tar.bz2
librpm-tizen-a2b999df2e71dd7b595ad329e26efe80eabb9d1f.zip
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)
-rw-r--r--build/parseSpec.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/build/parseSpec.c b/build/parseSpec.c
index 5d188cc5a..f45022b84 100644
--- a/build/parseSpec.c
+++ b/build/parseSpec.c
@@ -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++;