mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
net-misc/exabgp: remove unused patches
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Part-of: https://github.com/gentoo/gentoo/pull/41761 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
parent
d8eb8d9ecd
commit
b495af7b30
@ -1,22 +0,0 @@
|
||||
diff --git a/lib/exabgp/application/healthcheck.py b/lib/exabgp/application/healthcheck.py
|
||||
index a4f6b8d1..805cf8af 100644
|
||||
--- a/lib/exabgp/application/healthcheck.py
|
||||
+++ b/lib/exabgp/application/healthcheck.py
|
||||
@@ -168,6 +168,7 @@
|
||||
g.add_argument(
|
||||
"--start-ip", metavar='N', type=int, default=0, help="index of the first IP in the list of IP addresses"
|
||||
)
|
||||
+ g.add_argument("--no-metric", action="store_true", default=False, help="don't send metrics when updating announcements")
|
||||
g.add_argument(
|
||||
"--up-metric", metavar='M', type=int, default=100, help="first IP get the metric M when the service is up"
|
||||
)
|
||||
@@ -494,7 +495,8 @@
|
||||
announce = "route {0} next-hop {1}".format(str(ip), options.next_hop or "self")
|
||||
|
||||
if command == "announce":
|
||||
- announce = "{0} med {1}".format(announce, metric)
|
||||
+ if not options.no_metric:
|
||||
+ announce = "{0} med {1}".format(announce, metric)
|
||||
if options.local_preference >= 0:
|
||||
announce = "{0} local-preference {1}".format(announce, options.local_preference)
|
||||
if options.community or options.disabled_community:
|
||||
@ -1,52 +0,0 @@
|
||||
From: Vincent Bernat <bernat@debian.org>
|
||||
Date: Mon, 1 Jan 2024 09:15:39 +0100
|
||||
Subject: Patch embedded six for Python 3.12
|
||||
|
||||
Closes: #1058181
|
||||
---
|
||||
lib/exabgp/vendoring/six.py | 16 +++++++++++++++-
|
||||
1 file changed, 15 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/exabgp/vendoring/six.py b/lib/exabgp/vendoring/six.py
|
||||
index 20e866a..5f8f3b0 100644
|
||||
--- a/lib/exabgp/vendoring/six.py
|
||||
+++ b/lib/exabgp/vendoring/six.py
|
||||
@@ -71,6 +71,11 @@ def __len__(self):
|
||||
MAXSIZE = int((1 << 63) - 1)
|
||||
del X
|
||||
|
||||
+if PY34:
|
||||
+ from importlib.util import spec_from_loader
|
||||
+else:
|
||||
+ spec_from_loader = None
|
||||
+
|
||||
|
||||
def _add_doc(func, doc):
|
||||
"""Add documentation to a function."""
|
||||
@@ -182,6 +187,11 @@ def find_module(self, fullname, path=None):
|
||||
return self
|
||||
return None
|
||||
|
||||
+ def find_spec(self, fullname, path, target=None):
|
||||
+ if fullname in self.known_modules:
|
||||
+ return spec_from_loader(fullname, self)
|
||||
+ return None
|
||||
+
|
||||
def __get_module(self, fullname):
|
||||
try:
|
||||
return self.known_modules[fullname]
|
||||
@@ -217,9 +227,13 @@ def get_code(self, fullname):
|
||||
Required, if is_package is implemented"""
|
||||
self.__get_module(fullname) # eventually raises ImportError
|
||||
return None
|
||||
-
|
||||
get_source = get_code # same as get_code
|
||||
|
||||
+ def create_module(self, spec):
|
||||
+ return self.load_module(spec.name)
|
||||
+
|
||||
+ def exec_module(self, module):
|
||||
+ pass
|
||||
|
||||
_importer = _SixMetaPathImporter(__name__)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user