alpm/remove.c : respect --dbonly during remove-upgrade
commitabefa23341caa995cc0d155d30baa7faeb7a6c0e
authorXavier Chantry <chantry.xavier@gmail.com>
Mon, 11 Oct 2010 22:42:04 +0000 (12 00:42 +0200)
committerDan McGee <dan@archlinux.org>
Mon, 13 Dec 2010 02:19:24 +0000 (12 20:19 -0600)
treee723b522e8c34458019c2496a586e8f449760feb
parent3a9dec104858a64489b004296d009c8222e7f040
alpm/remove.c : respect --dbonly during remove-upgrade

When a -Sk or -Uk operation induced a removal of an existing local
package, --dbonly was not in effect and the files were all removed.

Fixing this behavior was already marked as TODO in database012 pactest
------------
TODO: I honestly think the above should NOT delete the original les, it
hould upgrade the DB entry without touching anything on the file stem.
E.g. this test should be the same as:
   pacman -R --dbonly dummy && pacman -U --dbonly dummy.pkg.tar.gz
------------

Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
[Dan: small coding style touchup]
Signed-off-by: Dan McGee <dan@archlinux.org>
doc/pacman.8.txt
lib/libalpm/remove.c
src/pacman/pacman.c
test/pacman/tests/database012.py