Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
char buffer[PATH_MAX];
struct pakfire_package* pkg = pakfire_archive_get_package(archive);
- if (!pkg)
+ if (!pkg) {
+ ERROR(archive->pakfire, "Could not fetch package from archive: %m\n");
return 1;
+ }
// Use a good default when no prefix is set
if (pakfire_package_is_source(pkg)) {
// Calculate digest
r = pakfire_archive_calculate_digest(archive, PAKFIRE_DIGEST_SHA512,
digest, &digest_length);
- if (r)
+ if (r) {
+ ERROR(archive->pakfire, "Could not calculate digest of %s: %m\n", archive->path);
return r;
+ }
// Use dummy repo if no repository was passed
if (!repo) {