- Turns out this change does more harm than good, people are actually
relying on this behavior to avoid zillion conditionals in the spec.
We'll want a saner way to conditionally disable/enable packages
but until we have that, revert to the former longstanding behavior.
- This effectively reverts commit
d010ec1c9026b35f5b2521be965c03c826894ce8
for (pkg = spec->packages; pkg != NULL; pkg = pkg->next) {
char *nvr;
const char *a;
+
+ if (pkg->fileList == NULL)
+ continue;
+
headerPutString(pkg->header, RPMTAG_SOURCERPM, spec->sourceRpmName);
nvr = headerGetAsString(pkg->header, RPMTAG_NVRA);
for (pkg = spec->packages; pkg != NULL; pkg = pkg->next) {
char *fn;
+ if (pkg->fileList == NULL)
+ continue;
+
if ((rc = processScriptFiles(spec, pkg)))
return rc;
}
}
+ pkg->fileList = argvNew();
+
if ((rc = readLine(spec, STRIP_COMMENTS)) > 0) {
nextPart = PART_NONE;
} else if (rc < 0) {
p->header = headerNew();
p->autoProv = 1;
p->autoReq = 1;
- p->fileList = argvNew();
+ p->fileList = NULL;
p->fileFile = NULL;
p->policyList = NULL;
if not posix.access("/var/checkme", "f") then
error("bad")
end
+
+%files
+%defattr(-,root,root)
%clean
rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)