Remove check for required commands

Not all architectures need all the commands, so the check
does not work very well.
This commit is contained in:
Martin Gracik 2011-06-27 12:47:10 +02:00
parent 00302d9434
commit 4f57d574a8
2 changed files with 0 additions and 18 deletions

View File

@ -173,13 +173,6 @@ class Lorax(BaseLoraxClass):
# do we have all lorax required commands? # do we have all lorax required commands?
self.lcmds = constants.LoraxRequiredCommands() self.lcmds = constants.LoraxRequiredCommands()
"""
missing = self.lcmds.get_missing()
if missing:
logger.critical("missing required command: {0}".format(missing))
sys.exit(1)
"""
# do we have a proper yum base object? # do we have a proper yum base object?
logger.info("checking yum base object") logger.info("checking yum base object")
if not isinstance(ybo, yum.YumBase): if not isinstance(ybo, yum.YumBase):

View File

@ -59,17 +59,6 @@ class LoraxRequiredCommands(dict):
def __getattr__(self, attr): def __getattr__(self, attr):
return self[attr] return self[attr]
def get_missing(self):
missing = []
for cmd in self.values():
found = [joinpaths(path, cmd) for path in self.__path
if os.path.exists(joinpaths(path, cmd))]
if not found:
missing.append(cmd)
return missing
# kernel types # kernel types
K_NORMAL = 0 K_NORMAL = 0