lib/getch/gentoo/use_flag.rb in getch-0.5.0 vs lib/getch/gentoo/use_flag.rb in getch-0.7.0

- old
+ new

@@ -58,11 +58,11 @@ def grub flags = [] use = Getch::Gentoo::Use.new('sys-boot/grub') flags << '-grub_platforms_efi-64' unless Helpers.efi? flags << 'libzfs' if OPTIONS[:fs] == 'zfs' - flags << 'device-mapper' if OPTIONS[:fs] == 'lvm' || OPTIONS[:encrypt] + flags << 'device-mapper' if OPTIONS[:lvm] || OPTIONS[:encrypt] use.add(flags) end def zfs return unless Getch::OPTIONS[:fs] == 'zfs' @@ -72,10 +72,10 @@ use = Getch::Gentoo::Use.new('sys-fs/zfs') use.add('rootfs') end def lvm - return unless Getch::OPTIONS[:fs] == 'lvm' + return unless Getch::OPTIONS[:lvm] use = Getch::Gentoo::Use.new use.add_global('lvm', 'device-mapper') end