rc = 0;
} else {
rc = rpmInstallSourcePackage(rootdir, fd, NULL, fn,
- printFormat);
+ printFormat, NULL);
}
}
return numFailed;
}
-int doSourceInstall(char * rootdir, char * arg, char ** specFile) {
+int doSourceInstall(char * rootdir, char * arg, char ** specFile,
+ char ** cookie) {
int fd;
int rc;
if (rpmIsVerbose())
printf("Installing %s\n", arg);
- rc = rpmInstallSourcePackage(rootdir, fd, specFile, NULL, NULL);
+ rc = rpmInstallSourcePackage(rootdir, fd, specFile, NULL, NULL, cookie);
if (rc == 1) {
fprintf(stderr, _("error: %s cannot be installed\n"), arg);
+ if (specFile) free(*specFile);
+ if (cookie) free(*cookie);
}
close(fd);