def __eq__(self, other):
        return (isinstance(other, self.__class__) and
                other.package == self.package)
def _makeglobrecursive(pat):
    """Make a glob pattern recursive by appending "/**" to it"""
    if pat.endswith("/") or not pat:
        return pat + "**"
    else:
        return pat + "/**"