summaryrefslogtreecommitdiff
path: root/build/parsePreamble.c
diff options
context:
space:
mode:
authormarc <devnull@localhost>1998-05-01 01:54:27 +0000
committermarc <devnull@localhost>1998-05-01 01:54:27 +0000
commitda136c205c9c605e614c42c0c732eee6804afccc (patch)
treeafdeff30a0d02d677271453e42f1d1cc1ef9a4ea /build/parsePreamble.c
parent27dc5bb73ec72d37ada0d3710a0d481719b66360 (diff)
downloadlibrpm-tizen-da136c205c9c605e614c42c0c732eee6804afccc.tar.gz
librpm-tizen-da136c205c9c605e614c42c0c732eee6804afccc.tar.bz2
librpm-tizen-da136c205c9c605e614c42c0c732eee6804afccc.zip
Do not remove comments in scripts
CVS patchset: 2101 CVS date: 1998/05/01 01:54:27
Diffstat (limited to 'build/parsePreamble.c')
-rw-r--r--build/parsePreamble.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/parsePreamble.c b/build/parsePreamble.c
index 6b8b03af0..239288681 100644
--- a/build/parsePreamble.c
+++ b/build/parsePreamble.c
@@ -91,7 +91,7 @@ int parsePreamble(Spec spec, int initialPackage)
headerAddEntry(pkg->header, RPMTAG_NAME, RPM_STRING_TYPE, fullName, 1);
}
- if (readLine(spec, STRIP_TRAILINGSPACE) > 0) {
+ if (readLine(spec, STRIP_TRAILINGSPACE | STRIP_COMMENTS) > 0) {
nextPart = PART_NONE;
} else {
while (! (nextPart = isPart(spec->line))) {
@@ -111,7 +111,7 @@ int parsePreamble(Spec spec, int initialPackage)
return PART_BUILDARCHITECTURES;
}
}
- if (readLine(spec, STRIP_TRAILINGSPACE) > 0) {
+ if (readLine(spec, STRIP_TRAILINGSPACE | STRIP_COMMENTS) > 0) {
nextPart = PART_NONE;
break;
}