From 71a118d40248324bd65e3ae3b921651a2871d348 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 24 Jun 1996 22:04:49 +0000 Subject: [PATCH] allow # comments in the %files section CVS patchset: 668 CVS date: 1996/06/24 22:04:49 --- build/spec.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/build/spec.c b/build/spec.c index a83b35f..b9a0577 100644 --- a/build/spec.c +++ b/build/spec.c @@ -1012,9 +1012,14 @@ Spec parseSpec(FILE *f, char *specfile) appendLineStringBuf(sb, line); break; case FILES_PART: - cur_package->files++; - appendLineStringBuf(cur_package->filelist, line); - parseForDocFiles(cur_package, line); + s1 = line; + while (*s1 && (*s1 == ' ' || *s1 == '\t')) s1++; + /* Handle blanks lines and comments */ + if (*s1 && (*s1 != '#')) { + cur_package->files++; + appendLineStringBuf(cur_package->filelist, line); + parseForDocFiles(cur_package, line); + } break; default: error(RPMERR_INTERNAL, "Bad part"); -- 2.7.4