files[i].action = CREATE;
if ((files[i].flags & RPMFILE_CONFIG) &&
!S_ISDIR(files[i].mode)) {
- if (exists(files[i].relativePath)) {
+ if (rpmfileexists(files[i].relativePath)) {
if (files[i].flags & RPMFILE_NOREPLACE) {
rpmMessage(RPMMESS_DEBUG,
_("%s exists - creating with alternate name\n"),
free(list);
}
-int exists(char * filespec) {
+int rpmfileexists(char * filespec) {
struct stat buf;
if (stat(filespec, &buf)) {
void freeSplitString(char ** list);
void stripTrailingSlashes(char * str);
-int exists(char * filespec);
+int rpmfileexists(char * filespec);
int rpmvercmp(char * one, char * two);
case 'f': data->source |= QUERY_PATH; data->sourceCount++; break;
case 'g': data->source |= QUERY_GROUP; data->sourceCount++; break;
case 'p': data->source |= QUERY_RPM; data->sourceCount++; break;
-
+ case 'v': rpmIncreaseVerbosity(); break;
case POPT_SPECFILE: data->source |= QUERY_SPECFILE; data->sourceCount++; break;
-
case POPT_WHATPROVIDES: data->source |= QUERY_WHATPROVIDES;
data->sourceCount++; break;
case POPT_WHATREQUIRES: data->source |= QUERY_WHATREQUIRES;
strcat(filename, dbpath);
strcat(filename, shortName);
- if (!justCheck || !exists(filename)) {
+ if (!justCheck || !rpmfileexists(filename)) {
*db = dbiOpenIndex(filename, perms, 0644);
if (!*db) {
return 1;
memset(&db, 0, sizeof(db));
- if (!justcheck || !exists(filename)) {
+ if (!justcheck || !rpmfileexists(filename)) {
db.pkgs = faOpen(filename, mode, 0644);
if (db.pkgs == NULL) {
rpmError(RPMERR_DBOPEN, _("failed to open %s\n"), filename);