From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BDF8315ACFB for ; Sun, 9 Apr 2023 06:52:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CD0AFE0844; Sun, 9 Apr 2023 06:52:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 80CCEE0843 for ; Sun, 9 Apr 2023 06:52:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5F46F3410C5 for ; Sun, 9 Apr 2023 06:52:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9C7DF8AC for ; Sun, 9 Apr 2023 06:52:07 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1681023094.7134b8d9820232ad8ea58860db2e911901a3a2c8.sam@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: lib/portage/sync/modules/webrsync/ X-VCS-Repository: proj/portage X-VCS-Files: lib/portage/sync/modules/webrsync/__init__.py lib/portage/sync/modules/webrsync/webrsync.py X-VCS-Directories: lib/portage/sync/modules/webrsync/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7134b8d9820232ad8ea58860db2e911901a3a2c8 X-VCS-Branch: master Date: Sun, 9 Apr 2023 06:52:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e5a9a85d-5b9b-41b1-b6f0-c93d6d6bb0ae X-Archives-Hash: 6ac1c44d94455a5d89d680b14c33a3d4 commit: 7134b8d9820232ad8ea58860db2e911901a3a2c8 Author: Sam James gentoo org> AuthorDate: Wed Mar 29 22:02:14 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sun Apr 9 06:51:34 2023 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=7134b8d9 sync: webrsync: fix module name for (stub) Python implementation - Fix module name for the (stub) Python implementation of the webrsync module: PyWebRsync != WebRsync. - Raise NotImplementedError if someone actually tries to use it. Signed-off-by: Sam James gentoo.org> lib/portage/sync/modules/webrsync/__init__.py | 4 ++-- lib/portage/sync/modules/webrsync/webrsync.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/portage/sync/modules/webrsync/__init__.py b/lib/portage/sync/modules/webrsync/__init__.py index bc0cdf43c..534a1d562 100644 --- a/lib/portage/sync/modules/webrsync/__init__.py +++ b/lib/portage/sync/modules/webrsync/__init__.py @@ -13,8 +13,8 @@ from portage.sync.config_checks import CheckSyncConfig DEFAULT_CLASS = "WebRsync" -AVAILABLE_CLASSES = ["WebRsync", "PyWebsync"] -options = {"1": "WebRsync", "2": "PyWebsync"} +AVAILABLE_CLASSES = ["WebRsync", "PyWebRsync"] +options = {"1": "WebRsync", "2": "PyWebRsync"} config_class = DEFAULT_CLASS diff --git a/lib/portage/sync/modules/webrsync/webrsync.py b/lib/portage/sync/modules/webrsync/webrsync.py index 18af5cfbb..f98162683 100644 --- a/lib/portage/sync/modules/webrsync/webrsync.py +++ b/lib/portage/sync/modules/webrsync/webrsync.py @@ -146,4 +146,6 @@ class PyWebRsync(SyncBase): def sync(self, **kwargs): """Sync the repository""" - pass + raise NotImplementedError( + "Python impl. of webrsync backend is not yet implemented" + )