&& !headerIsEntry(h, RPMTAG_CONFLICTNAME))
return 0;
- rc = rpmtransAddPackage(ts, h, NULL, 0, NULL);
-
rc = rpmdepCheck(ts, &conflicts, &numConflicts);
/*@-branchstate@*/
if (rc == 0 && conflicts) {
goto exit;
}
- (void) rpmtransAddPackage(ts, h, NULL, 0, NULL);
+ (void) rpmtransAddPackage(ts, h, NULL, 0, NULL);
fi = fiNew(ts, fi, h, RPMTAG_BASENAMES, scareMem);
h = headerFree(h, "InstallSourcePackage");
/*@access IDTX @*/
/*@access IDT @*/
+extern int _rpmio_debug;
+
/*@unchecked@*/
static int hashesPrinted = 0;
case RPMCALLBACK_UNINST_PROGRESS:
case RPMCALLBACK_UNINST_START:
case RPMCALLBACK_UNINST_STOP:
+ case RPMCALLBACK_UNPACK_ERROR:
+ case RPMCALLBACK_CPIO_ERROR:
/* ignore */
break;
}
}
int rpmInstallSource(rpmTransactionSet ts, const char * arg,
- const char ** specFile, const char ** cookie)
+ const char ** specFilePtr, const char ** cookie)
{
FD_t fd;
int rc;
+fprintf(stderr, "*** rpmInstallSource(%p,%s,%p,%p)\n", ts, arg, specFilePtr, cookie);
+_rpmio_debug = -1;
fd = Fopen(arg, "r.ufdio");
if (fd == NULL || Ferror(fd)) {
rpmMessage(RPMMESS_ERROR, _("cannot open %s: %s\n"), arg, Fstrerror(fd));
fprintf(stdout, _("Installing %s\n"), arg);
{
- rpmRC rpmrc = rpmInstallSourcePackage(ts, fd, specFile, cookie);
+ rpmRC rpmrc = rpmInstallSourcePackage(ts, fd, specFilePtr, cookie);
rc = (rpmrc == RPMRC_OK ? 0 : 1);
}
if (rc != 0) {
rpmMessage(RPMMESS_ERROR, _("%s cannot be installed\n"), arg);
/*@-unqualifiedtrans@*/
- if (specFile && *specFile)
- *specFile = _free(*specFile);
+ if (specFilePtr && *specFilePtr)
+ *specFilePtr = _free(*specFilePtr);
if (cookie && *cookie)
*cookie = _free(*cookie);
/*@=unqualifiedtrans@*/