allow # comments in the %files section

CVS patchset: 668
CVS date: 1996/06/24 22:04:49
This commit is contained in:
root 1996-06-24 22:04:49 +00:00
parent 8a0025607c
commit 71a118d402
1 changed files with 8 additions and 3 deletions

View File

@ -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");