added logic for empty %files section vs NO %files section
,. CVS patchset: 63 CVS date: 1995/12/19 17:56:45
This commit is contained in:
parent
12226f6441
commit
4a647b2bc3
|
@ -61,7 +61,7 @@ static struct PackageRec *new_packagerec(void)
|
|||
p->newname = NULL;
|
||||
p->header = newHeader();
|
||||
p->filelist = newStringBuf();
|
||||
p->files = 0;
|
||||
p->files = -1; /* -1 means no %files, thus no package */
|
||||
p->next = NULL;
|
||||
|
||||
return p;
|
||||
|
@ -416,6 +416,11 @@ Spec parseSpec(FILE *f)
|
|||
}
|
||||
|
||||
printf("Switched to package: %s\n", s);
|
||||
|
||||
if (cur_part == FILES_PART) {
|
||||
cur_package->files = 0;
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue