def install(self, packages, update=False, check=False, recommends=False):
    recommends_str = ('' if recommends else '--no-install-recommends ')
    return super(Apt, self).install(packages, update=update, check=check, recommends=recommends_str)
def install(self, packages, update=False, check=False, recommends=False):
    recommends_str = ( if recommends else '--no-install-recommends ')
    return super(Apt, self).install(packages, update=update, check=check, recommends=recommends_str)