// Install everything
r = pakfire_install(pakfire, 0, (const char**)packages, NULL, 0, &changed);
if (r) {
- ERROR(pakfire, "Could not install build dependencies\n");
+ ERROR(pakfire, "Could not install build dependencies: %m\n");
goto ERROR;
}
// Fetch mirrorlist
mirrorlist = pakfire_repo_get_mirrorlist(repo);
+ const char* nevra = pakfire_package_get_nevra(pkg);
+ if (!nevra)
+ goto ERROR;
+
// Where to store the package?
const char* path = pakfire_package_get_path(pkg);
- if (!path)
+ if (!path) {
+ ERROR(transaction->pakfire, "Could not retrieve package path for %s: %m\n", nevra);
goto ERROR;
+ }
// What file to download?
const char* filename = pakfire_package_get_filename(pkg);
- if (!filename)
- goto ERROR;
-
- const char* nevra = pakfire_package_get_nevra(pkg);
- if (!nevra)
+ if (!filename) {
+ ERROR(transaction->pakfire, "Could not retrieve filename for package %s: %m\n", nevra);
goto ERROR;
+ }
enum pakfire_digests digest_type = PAKFIRE_DIGEST_NONE;
// Enqueue download
r = pakfire_transaction_download_package(transaction, downloader, pkg);
- if (r)
+ if (r) {
+ const char* nevra = pakfire_package_get_nevra(pkg);
+
+ ERROR(transaction->pakfire, "Could not add download to queue: %s: %m\n", nevra);
goto ERROR;
+ }
}
// Run the downloader