def __eq__(self, other):
        return (isinstance(other, self.__class__) and
                other.package == self.package)
def visitdir(self, dir):
        matched = self._matcher.match_recursive(dir)
        if matched is None:
            return True
        elif matched is True:
            return "all"
        else:
            assert matched is False
            return False