diff options
author | marc <devnull@localhost> | 1998-05-01 01:54:27 +0000 |
---|---|---|
committer | marc <devnull@localhost> | 1998-05-01 01:54:27 +0000 |
commit | da136c205c9c605e614c42c0c732eee6804afccc (patch) | |
tree | afdeff30a0d02d677271453e42f1d1cc1ef9a4ea /build/parsePreamble.c | |
parent | 27dc5bb73ec72d37ada0d3710a0d481719b66360 (diff) | |
download | librpm-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.c | 4 |
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; } |