'Check that the spec\'s namespace is the same as this repository\'s.'

def _check_namespace(self, spec):

    if (spec.namespace and (spec.namespace != self.namespace)):
        raise UnknownNamespaceError(spec.namespace)
