diff options
author | Nagy Gabor <ngaba@bibl.u-szeged.hu> | 2009-09-15 12:30:32 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-09-20 12:01:25 -0500 |
commit | ef3716877032941f7882c11c5a091abef95ef983 (patch) | |
tree | d67e75fb6c9c29a2252d44cc32b04310cdd51fa6 /pactest/pmpkg.py | |
parent | 481014e944731e2756e16a7283f8a10498cadba4 (diff) | |
download | pacman-ef3716877032941f7882c11c5a091abef95ef983.tar.xz |
Ask user confirmation for -R operation, too
After commit 0da96abc, pacman always asks user confirmation for -U, so it is
more coherent to doing that for -R, too.
Btw, most users use -Rs always, so they won't notice any change. In the old
code the -Ru operation was forgotten: Though it is a not "dangerous" operation,
but the target list can be changed by that, too.
Non-interactive scripts should always use --noconfirm (unexpected questions can
be asked by all transactions). [That's why we should always default to the
safest answers.]
I've also added a pkglist != NULL sanity check (because -Ru can empty target
list in trans_prepare part).
Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/pmpkg.py')
0 files changed, 0 insertions, 0 deletions