Remove hfsplus-tools dependency (#818913)

Mac boot images are optional. Don't require hfsplus-tools
by default, but warn the user that he needs to install them
if he wants to create mac boot images.
This commit is contained in:
Martin Gracik 2012-05-29 12:38:22 +02:00
parent 7ba6af6d29
commit a9e5630322
2 changed files with 7 additions and 1 deletions

View File

@ -23,7 +23,6 @@ Requires: isomd5sum
Requires: glibc
Requires: util-linux
Requires: dosfstools
Requires: hfsplus-tools
Requires: genisoimage
Requires: parted
Requires: gzip

View File

@ -134,6 +134,13 @@ class Lorax(BaseLoraxClass):
assert self._configured
if domacboot:
try:
subprocess.check_call("rpm -q hfsplus-tools")
except subprocess.CalledProcessError:
logger.critical("you need to install hfsplus-tools to create mac images")
sys.exit(1)
# set up work directory
self.workdir = workdir or tempfile.mkdtemp(prefix="pylorax.work.")
if not os.path.isdir(self.workdir):