/**
* Parse %caps from file manifest.
* @param buf current spec file line
- * @param fl package file tree walk data
+ * @param cur current file entry data
* @return RPMRC_OK on success
*/
-static rpmRC parseForCaps(char * buf, FileList fl)
+static rpmRC parseForCaps(char * buf, FileEntry cur)
{
char *p, *pe, *q = NULL;
const char *name;
}
/* run our string through cap_to_text() to get libcap presentation */
captxt = cap_to_text(fcaps, NULL);
- fl->cur.caps = xstrdup(captxt);
- fl->haveCaps = 1;
+ cur->caps = xstrdup(captxt);
cap_free(captxt);
cap_free(fcaps);
}
parseForDev(buf, &fl.cur) ||
parseForConfig(buf, &fl.cur) ||
parseForLang(buf, &fl.cur) ||
- parseForCaps(buf, &fl) ||
+ parseForCaps(buf, &fl.cur) ||
parseForSimple(spec, pkg, buf, &fl, &fileName))
{
fl.processingFailed = 1;
if (fileName == NULL)
continue;
+ if (fl.cur.caps)
+ fl.haveCaps = 1;
+
if (pkg->specialDoc && specialDoc == NULL) {
/* Save this stuff for last */
specialDoc = xstrdup(fileName);