int orIndex;
};
-static int _cacheDependsRC = 1;
+RPM_GNUC_INTERNAL int _cacheDependsRC = 1;
const char * const rpmNAME = PACKAGE;
#define S_ISDEV(m) (S_ISBLK((m)) || S_ISCHR((m)))
extern int _rpmds_unspecified_epoch_noise;
+extern int _cacheDependsRC;
/* If cap_compare() (Linux extension) not available, do it the hard way */
#if WITH_CAP && !defined(HAVE_CAP_COMPARE)
rpmVSFlags vsflags, ovsflags;
int ec = 0, xx;
const char * rootDir = rpmtsRootDir(ts);
+ int cachingDeps = _cacheDependsRC;
/*
* Open the DB + indices explicitly before possible chroot,
goto exit;
} else {
rpmtsSetChrootDone(ts, 1);
+ /* XXX temporary db path is wrong when chrooted, disable caching */
+ _cacheDependsRC = 0;
}
}
}
exit:
+ _cacheDependsRC = cachingDeps;
return ec;
}