1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

Ensure --print doesn't enable --noconfirm when not expected

This is at best a hack around the way we currently do our --print magic,
but at least prevents someone from shooting themselves in the foot as
indicated in FS#24287.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2011-05-16 11:52:49 -05:00
parent aec60e3782
commit ba467779bb

View File

@ -1416,7 +1416,7 @@ int main(int argc, char *argv[])
}
/* set up the print operations */
if(config->print) {
if(config->print && !config->op_s_clean) {
config->noconfirm = 1;
config->flags |= PM_TRANS_FLAG_NOCONFLICTS;
config->flags |= PM_TRANS_FLAG_NOLOCK;