def METHOD_NAME(self, content):
    for i, c in enumerate(content):
        if 'Repodata is over 2 weeks old' in c:
            self.expired_cache = True
        elif c == self.package_status + " Packages":
            break
    return i + 1