ARGV_t av;
rpm_mode_t * fmode;
int ac = rpmfiFC(fi);
- int genConfigDeps;
+ int genConfigDeps = 0;
rpmRC rc = RPMRC_OK;
int idx;
struct rpmtd_s td;
av = xcalloc(ac+1, sizeof(*av));
fmode = xcalloc(ac+1, sizeof(*fmode));
- genConfigDeps = 0;
fi = rpmfiInit(fi, 0);
- if (fi != NULL)
while ((idx = rpmfiNext(fi)) >= 0) {
- rpmfileAttrs fileAttrs;
-
/* Does package have any %config files? */
- fileAttrs = rpmfiFFlags(fi);
- genConfigDeps |= (fileAttrs & RPMFILE_CONFIG);
+ genConfigDeps |= (rpmfiFFlags(fi) & RPMFILE_CONFIG);
av[idx] = xstrdup(rpmfiFN(fi));
fmode[idx] = rpmfiFMode(fi);
}
/* Add Provides: */
- if (fc->provides != NULL && rpmdsCount(fc->provides) > 0 && !fc->skipProv) {
+ if (!fc->skipProv) {
rpmds pi = rpmdsInit(fc->provides);
while (rpmdsNext(pi) >= 0) {
rpmsenseFlags flags = rpmdsFlags(pi);
}
/* Add Requires: */
- if (fc->requires != NULL && rpmdsCount(fc->requires) > 0 && !fc->skipReq) {
+ if (!fc->skipReq) {
rpmds pi = rpmdsInit(fc->requires);
while (rpmdsNext(pi) >= 0) {
rpmsenseFlags flags = rpmdsFlags(pi);