xbps-install: in dry run mode, print transaction even when disk is full

Closes: #322 [via git-merge-pr]
This commit is contained in:
Piotr Wójcik 2020-08-20 13:59:17 +02:00 committed by Duncan Overbruck
parent 024c4cc75d
commit 379cd4da2c
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35

View File

@ -380,12 +380,16 @@ exec_transaction(struct xbps_handle *xhp, unsigned int maxcols, bool yes, bool d
}
fprintf(stderr, "Transaction aborted due to insufficient disk "
"space (need %s, got %s free).\n", instsize, freesize);
if (drun) {
goto proceed;
}
} else {
xbps_dbg_printf(xhp, "Empty transaction dictionary: %s\n",
strerror(errno));
}
goto out;
}
proceed:
#ifdef FULL_DEBUG
xbps_dbg_printf(xhp, "Dictionary before transaction happens:\n");
xbps_dbg_printf_append(xhp, "%s",