ps = rpmtsProblems(ts);
if (rc == 0 && rpmpsNumProblems(ps) > 0) {
- rpmlog(RPMMESS_ERROR, _("Failed build dependencies:\n"));
+ rpmlog(RPMLOG_ERR, _("Failed build dependencies:\n"));
rpmpsPrint(NULL, ps);
rc = 1;
}
t = getStringBuf(sb_stdout);
if ((*t != '\0') && (*t != '\n')) {
rc = (_unpackaged_files_terminate_build) ? 1 : 0;
- rpmlog((rc ? RPMMESS_ERROR : RPMMESS_WARNING),
+ rpmlog((rc ? RPMLOG_ERR : RPMMESS_WARNING),
_("Installed (but unpackaged) file(s) found:\n%s"), t);
}
}
}
/* Return no. of packages that could not be ordered. */
- rpmlog(RPMMESS_ERROR, _("rpmtsOrder failed, %d elements remain\n"),
+ rpmlog(RPMLOG_ERR, _("rpmtsOrder failed, %d elements remain\n"),
loopcheck);
return loopcheck;
}
/* Parse the parameters from the OpenPGP packets that will be needed. */
xx = pgpPrtPkts(sig, info->count, dig, (_print_pkts & rpmIsDebug()));
if (dig->signature.version != 3 && dig->signature.version != 4) {
- rpmlog(RPMMESS_ERROR,
+ rpmlog(RPMLOG_ERR,
_("skipping header with unverifiable V%u signature\n"),
dig->signature.version);
rpmtsCleanDig(ts);
/* Parse the parameters from the OpenPGP packets that will be needed. */
xx = pgpPrtPkts(sig, info->count, dig, (_print_pkts & rpmIsDebug()));
if (dig->signature.version != 3 && dig->signature.version != 4) {
- rpmlog(RPMMESS_ERROR,
+ rpmlog(RPMLOG_ERR,
_("skipping header with unverifiable V%u signature\n"),
dig->signature.version);
rpmtsCleanDig(ts);
/* Parse the parameters from the OpenPGP packets that will be needed. */
xx = pgpPrtPkts(sig, siglen, dig, (_print_pkts & rpmIsDebug()));
if (dig->signature.version != 3 && dig->signature.version != 4) {
- rpmlog(RPMMESS_ERROR,
+ rpmlog(RPMLOG_ERR,
_("skipping package %s with unverifiable V%u signature\n"),
fn, dig->signature.version);
rc = RPMRC_FAIL;
/* Parse the parameters from the OpenPGP packets that will be needed. */
xx = pgpPrtPkts(sig, siglen, dig, (_print_pkts & rpmIsDebug()));
if (dig->signature.version != 3 && dig->signature.version != 4) {
- rpmlog(RPMMESS_ERROR,
+ rpmlog(RPMLOG_ERR,
_("skipping package %s with unverifiable V%u signature\n"),
fn, dig->signature.version);
rc = RPMRC_FAIL;
xx = pgpPrtPkts(sig, siglen, dig, (_print_pkts & rpmIsDebug()));
if (dig->signature.version != 3 && dig->signature.version != 4) {
- rpmlog(RPMMESS_ERROR,
+ rpmlog(RPMLOG_ERR,
_("skipping package %s with unverifiable V%u signature\n"),
fn, dig->signature.version);
rc = RPMRC_FAIL;
break;
default:
case RPMRC_FAIL: /* Signature does not verify. */
- rpmlog(RPMMESS_ERROR, "%s: %s", fn, buf);
+ rpmlog(RPMLOG_ERR, "%s: %s", fn, buf);
break;
}
} else {
const char *nevra = hGetNEVRA(h, NULL);
if (payloadfmt && strncmp(payloadfmt, "drpm", strlen("drpm")) == 0) {
- rpmlog(RPMMESS_ERROR,
+ rpmlog(RPMLOG_ERR,
_("%s is a Delta RPM and cannot be directly installed\n"),
nevra);
} else {
- rpmlog(RPMMESS_ERROR,
+ rpmlog(RPMLOG_ERR,
_("Unsupported payload (%s) in package %s\n"),
payloadfmt ? payloadfmt : "none", nevra);
}
/* XXX query/verify will need the glop added to a buffer instead. */
ps = rpmtsProblems(ts);
if (rpmpsNumProblems(ps) > 0) {
- /* XXX rpminstall will need RPMMESS_ERROR */
+ /* XXX rpminstall will need RPMLOG_ERR */
rpmlog(RPMMESS_VERBOSE, _("Failed dependencies:\n"));
if (rpmIsVerbose())
rpmpsPrint(NULL, ps);
rpmlog(RPMLOG_DEBUG, _(" ... as %s\n"), tfn);
rc = urlGetFile(fileURL, tfn);
if (rc < 0) {
- rpmlog(RPMMESS_ERROR,
+ rpmlog(RPMLOG_ERR,
_("skipping %s - transfer failed - %s\n"),
fileURL, ftpStrerror(rc));
eiu->numFailed++;
switch (eiu->rpmrc) {
case RPMRC_FAIL:
- rpmlog(RPMMESS_ERROR, _("%s cannot be installed\n"), *eiu->fnp);
+ rpmlog(RPMLOG_ERR, _("%s cannot be installed\n"), *eiu->fnp);
eiu->numFailed++; *eiu->fnp = NULL;
continue;
break;
} else {
const char * name;
xx = headerNVR(eiu->h, &name, NULL, NULL);
- rpmlog(RPMMESS_ERROR,
+ rpmlog(RPMLOG_ERR,
_("package %s is not relocatable\n"), name);
eiu->numFailed++;
goto exit;
eiu->numRPMS);
break;
case 1:
- rpmlog(RPMMESS_ERROR,
+ rpmlog(RPMLOG_ERR,
_("error reading from file %s\n"), *eiu->fnp);
eiu->numFailed++;
goto exit;
break;
case 2:
- rpmlog(RPMMESS_ERROR,
+ rpmlog(RPMLOG_ERR,
_("file %s requires a newer version of RPM\n"),
*eiu->fnp);
eiu->numFailed++;
ps = rpmtsProblems(ts);
if (!stopInstall && rpmpsNumProblems(ps) > 0) {
- rpmlog(RPMMESS_ERROR, _("Failed dependencies:\n"));
+ rpmlog(RPMLOG_ERR, _("Failed dependencies:\n"));
rpmpsPrint(NULL, ps);
eiu->numFailed = eiu->numPkgs;
stopInstall = 1;
if (eiu->sourceURL[i] == NULL) continue;
eiu->fd = Fopen(eiu->sourceURL[i], "r.ufdio");
if (eiu->fd == NULL || Ferror(eiu->fd)) {
- rpmlog(RPMMESS_ERROR, _("cannot open file %s: %s\n"),
+ rpmlog(RPMLOG_ERR, _("cannot open file %s: %s\n"),
eiu->sourceURL[i], Fstrerror(eiu->fd));
if (eiu->fd != NULL) {
xx = Fclose(eiu->fd);
/* XXX HACK to get rpmdbFindByLabel out of the API */
mi = rpmtsInitIterator(ts, RPMDBI_LABEL, *arg, 0);
if (mi == NULL) {
- rpmlog(RPMMESS_ERROR, _("package %s is not installed\n"), *arg);
+ rpmlog(RPMLOG_ERR, _("package %s is not installed\n"), *arg);
numFailed++;
} else {
Header h; /* XXX iterator owns the reference */
unsigned int recOffset = rpmdbGetIteratorOffset(mi);
if (!(count++ == 0 || (ia->eraseInterfaceFlags & UNINSTALL_ALLMATCHES))) {
- rpmlog(RPMMESS_ERROR, _("\"%s\" specifies multiple packages\n"),
+ rpmlog(RPMLOG_ERR, _("\"%s\" specifies multiple packages\n"),
*arg);
numFailed++;
break;
ps = rpmtsProblems(ts);
if (!stopUninstall && rpmpsNumProblems(ps) > 0) {
- rpmlog(RPMMESS_ERROR, _("Failed dependencies:\n"));
+ rpmlog(RPMLOG_ERR, _("Failed dependencies:\n"));
rpmpsPrint(NULL, ps);
numFailed += numPackages;
stopUninstall = 1;
fd = Fopen(arg, "r.ufdio");
if (fd == NULL || Ferror(fd)) {
- rpmlog(RPMMESS_ERROR, _("cannot open %s: %s\n"), arg, Fstrerror(fd));
+ rpmlog(RPMLOG_ERR, _("cannot open %s: %s\n"), arg, Fstrerror(fd));
if (fd != NULL) (void) Fclose(fd);
return 1;
}
ovsflags = rpmtsSetVSFlags(ts, ovsflags);
}
if (rc != 0) {
- rpmlog(RPMMESS_ERROR, _("%s cannot be installed\n"), arg);
+ rpmlog(RPMLOG_ERR, _("%s cannot be installed\n"), arg);
if (specFilePtr && *specFilePtr)
*specFilePtr = _free(*specFilePtr);
if (cookie && *cookie)
rc = rpmtsCheck(ts);
ps = rpmtsProblems(ts);
if (rc != 0 && rpmpsNumProblems(ps) > 0) {
- rpmlog(RPMMESS_ERROR, _("Failed dependencies:\n"));
+ rpmlog(RPMLOG_ERR, _("Failed dependencies:\n"));
rpmpsPrint(NULL, ps);
ps = rpmpsFree(ps);
goto exit;
rootDir = "/";
lock = rpmlock_new(rootDir);
if (!lock) {
- rpmlog(RPMMESS_ERROR, _("can't create transaction lock on %s\n"), rpmlock_path);
+ rpmlog(RPMLOG_ERR, _("can't create transaction lock on %s\n"), rpmlock_path);
} else if (!rpmlock_acquire(lock, RPMLOCK_WRITE)) {
if (lock->openmode & RPMLOCK_WRITE)
rpmlog(RPMMESS_WARNING,
_("waiting for transaction lock on %s\n"), rpmlock_path);
if (!rpmlock_acquire(lock, RPMLOCK_WRITE|RPMLOCK_WAIT)) {
- rpmlog(RPMMESS_ERROR,
+ rpmlog(RPMLOG_ERR,
_("can't create transaction lock on %s\n"), rpmlock_path);
rpmlock_free(lock);
lock = NULL;
if (rc) {
const char * dn;
dn = rpmGetPath(ts->rootDir, "%{_dbpath}", NULL);
- rpmlog(RPMMESS_ERROR,
+ rpmlog(RPMLOG_ERR,
_("cannot open Packages database in %s\n"), dn);
dn = _free(dn);
}
rc = rpmtsCheck(rollbackTransaction);
ps = rpmtsProblems(rollbackTransaction);
if (rc != 0 && rpmpsNumProblems(ps) > 0) {
- rpmlog(RPMMESS_ERROR, _("Failed dependencies:\n"));
+ rpmlog(RPMLOG_ERR, _("Failed dependencies:\n"));
rpmpsPrint(NULL, ps);
ps = rpmpsFree(ps);
return -1;
/* Order the transaction */
rc = rpmtsOrder(rollbackTransaction);
if (rc != 0) {
- rpmlog(RPMMESS_ERROR,
+ rpmlog(RPMLOG_ERR,
_("Could not order auto-rollback transaction!\n"));
return -1;
}
/* If we should rollback this transaction
on failure, lets do it. */
if (rollbackOnFailure) {
- rpmlog(RPMMESS_ERROR,
+ rpmlog(RPMLOG_ERR,
_("Add failed. Could not read package header.\n"));
/* Clean up the current transaction */
p->h = headerFree(p->h);
/* If we should rollback this transaction
on failure, lets do it. */
if (rollbackOnFailure) {
- rpmlog(RPMMESS_ERROR,
+ rpmlog(RPMLOG_ERR,
_("Add failed in rpmpsmStage().\n"));
/* Clean up the current transaction */
p->h = headerFree(p->h);
* on failure, lets do it.
*/
if (rollbackOnFailure) {
- rpmlog(RPMMESS_ERROR, _("Add failed. Could not get file list.\n"));
+ rpmlog(RPMLOG_ERR, _("Add failed. Could not get file list.\n"));
/* Clean up the current transaction */
p->h = headerFree(p->h);
xx = rpmdbSync(rpmtsGetRdb(ts));
* on failure, lets do it.
*/
if (rollbackOnFailure) {
- rpmlog(RPMMESS_ERROR,
+ rpmlog(RPMLOG_ERR,
_("Erase failed failed in rpmpsmStage().\n"));
/* Clean up the current transaction */
xx = rpmdbSync(rpmtsGetRdb(ts));
int lvl;
rpmrc = (*mi->mi_hdrchk) (mi->mi_ts, data->data, data->size, &msg);
- lvl = (rpmrc == RPMRC_FAIL ? RPMMESS_ERROR : RPMLOG_DEBUG);
+ lvl = (rpmrc == RPMRC_FAIL ? RPMLOG_ERR : RPMLOG_DEBUG);
rpmlog(lvl, "%s h#%8u %s",
(rpmrc == RPMRC_FAIL ? _("miFreeHeader: skipping") : "write"),
mi->mi_prevoffset, (msg ? msg : "\n"));
int lvl;
rpmrc = (*mi->mi_hdrchk) (mi->mi_ts, uh, uhlen, &msg);
- lvl = (rpmrc == RPMRC_FAIL ? RPMMESS_ERROR : RPMLOG_DEBUG);
+ lvl = (rpmrc == RPMRC_FAIL ? RPMLOG_ERR : RPMLOG_DEBUG);
rpmlog(lvl, "%s h#%8u %s",
(rpmrc == RPMRC_FAIL ? _("rpmdbNextIterator: skipping") : " read"),
mi->mi_offset, (msg ? msg : "\n"));
int lvl;
rpmrc = (*hdrchk) (ts, data->data, data->size, &msg);
- lvl = (rpmrc == RPMRC_FAIL ? RPMMESS_ERROR : RPMLOG_DEBUG);
+ lvl = (rpmrc == RPMRC_FAIL ? RPMLOG_ERR : RPMLOG_DEBUG);
rpmlog(lvl, "%s h#%8u %s",
(rpmrc == RPMRC_FAIL ? _("rpmdbAdd: skipping") : " +++"),
hdrNum, (msg ? msg : "\n"));
goto exit;
} else if (!nocleanup) {
if (rpmdbMoveDatabase(prefix, newdbpath, _dbapi_rebuild, dbpath, _dbapi)) {
- rpmlog(RPMMESS_ERROR, _("failed to replace old database with new "
+ rpmlog(RPMLOG_ERR, _("failed to replace old database with new "
"database!\n"));
- rpmlog(RPMMESS_ERROR, _("replace files in %s with files from %s "
+ rpmlog(RPMLOG_ERR, _("replace files in %s with files from %s "
"to recover"), dbpath, newdbpath);
rc = 1;
goto exit;
if (removedir && !(rc == 0 && nocleanup)) {
rpmlog(RPMLOG_DEBUG, _("removing directory %s\n"), newrootdbpath);
if (Rmdir(newrootdbpath))
- rpmlog(RPMMESS_ERROR, _("failed to remove directory %s: %s\n"),
+ rpmlog(RPMLOG_ERR, _("failed to remove directory %s: %s\n"),
newrootdbpath, strerror(errno));
}
newrootdbpath = _free(newrootdbpath);
char *end;
u->port = strtol(u->portstr, &end, 0);
if (!(end && *end == '\0')) {
- rpmlog(RPMMESS_ERROR, _("url port must be a number\n"));
+ rpmlog(RPMLOG_ERR, _("url port must be a number\n"));
myurl = _free(myurl);
u = urlFree(u);
return -1;
switch (rpmrc) {
case RPMRC_FAIL:
default:
- rpmlog(RPMMESS_ERROR, _("%s cannot be installed\n"), *fnp);
+ rpmlog(RPMLOG_ERR, _("%s cannot be installed\n"), *fnp);
numFailed++; *fnp = NULL;
break;
case RPMRC_OK:
}
ps = rpmtsProblems(ts);
if (rpmpsNumProblems(ps) > 0) {
- rpmlog(RPMMESS_ERROR, _("Failed dependencies:\n"));
+ rpmlog(RPMLOG_ERR, _("Failed dependencies:\n"));
rpmpsPrint(NULL, ps);
numFailed += numPkgs;
rc = rpmtsOpenDB(ts, O_RDONLY);
if (rc) {
- rpmlog(RPMMESS_ERROR, _("cannot open Packages database\n"));
+ rpmlog(RPMLOG_ERR, _("cannot open Packages database\n"));
rc = -1;
goto exit;
}
rc = rpmdbOpen(rootdir, &avdb, O_RDONLY, 0644);
delMacro(NULL, "_dbpath");
if (rc) {
- rpmlog(RPMMESS_ERROR, _("cannot open Available database\n"));
+ rpmlog(RPMLOG_ERR, _("cannot open Available database\n"));
goto endavail;
}
mi = rpmdbInitIterator(avdb, RPMDBI_PACKAGES, NULL, 0);
}
if (rc != RPMRC_NOTFOUND) {
- rpmlog(RPMMESS_ERROR, _("%s cannot be installed\n"), *fnp);
+ rpmlog(RPMLOG_ERR, _("%s cannot be installed\n"), *fnp);
numFailed++; *fnp = NULL;
break;
}
ps = rpmtsProblems(ts);
if (ps) {
- rpmlog(RPMMESS_ERROR, _("Failed dependencies:\n"));
+ rpmlog(RPMLOG_ERR, _("Failed dependencies:\n"));
rpmpsPrint(NULL, ps);
ps = rpmpsFree(ps);
rc = -1;