'Return true if \'exclude_package(package)\' would do something'

def has_contents_for(self, package):

    pfx = (package + '.')
    for p in self.iter_distribution_names():
        if ((p == package) or p.startswith(pfx)):
            return True
