code: def is_local(self):
          
          local_repo = package_repository_manager.get_repository(
              self.config.local_packages_path)
          return (self.resource._repository.uid == local_repo.uid)
docs: Returns True if the package is in the local package repository