def isValidEnvironment(self): result = environment.checkBinaries([ "unionfs-fuse", "fusermount", "uchroot", "fakechroot", "chroot", "mkfs.ext2", "appmount", "appattach"]) base_requirements = (result["fusermount"] and result["mkfs.ext2"] and result["appmount"] and result["appattach"] and result["unionfs-fuse"]) if (base_requirements and result["uchroot"]): self.command_chroot = ["uchroot"] return True elif (base_requirements and result["fakechroot"] and result["chroot"]): self.command_chroot = ["fakechroot", "chroot"] return True else: return False
def isValidEnvironment(self): result = environment.checkBinaries([ "unionfs-fuse", "fusermount", "mkfs.ext2", "appmount", "appattach"]) base_requirements = (result["fusermount"] and result["mkfs.ext2"] and result["appmount"] and result["appattach"] and result["unionfs-fuse"]) return base_requirements