diff options
author | Dan McGee <dan@archlinux.org> | 2011-02-11 17:49:30 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-02-11 17:51:59 +0100 |
commit | 30f338cce6ebcab5dc521f5effef4c6527e8a197 (patch) | |
tree | 1bbb5b8d29e1cd2c2777bae209d0cc81b4322b77 /contrib | |
parent | 3afe3b6dfb928200166f348964de24e3f7188568 (diff) | |
download | pacman-30f338cce6ebcab5dc521f5effef4c6527e8a197.tar.gz pacman-30f338cce6ebcab5dc521f5effef4c6527e8a197.tar.xz |
diskspace: allow used flag to be toggled for both remove and install
Turn it into an enum rather than a boolean, and use a bitmask like we do for
reading DB entries. The relevant flag is turned on in our two calculate
loops, and anything reading the used flag later can decided which flag (or
either) is relevant.
This will allow the read-only partition code to be triggered on a
remove-only operation, e.g. if /boot was read-only and one tried to remove
grub in a sync transaction. Of course, right now, we don't actually run the
diskspace check code in the '-R' codepath.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions