net-vpn/proton-vpn-gtk-app: remove call to apt

Signed-off-by: Mattéo Rossillol‑‑Laruelle <beatussum@protonmail.com>
This commit is contained in:
Mattéo Rossillol‑‑Laruelle
2025-04-25 15:30:09 +02:00
parent e1c0da9dc3
commit d488f84a9f
2 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
From 70701c9a4027af7b804d415c01294858eda387fb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matt=C3=A9o=20Rossillol=E2=80=91=E2=80=91Laruelle?=
<beatussum@protonmail.com>
Date: Fri, 25 Apr 2025 15:07:19 +0200
Subject: [PATCH] remove call to `apt`
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
In Gentoo, `apt` is a part of the Java upstream and is installed by
`app-eselect/eselect-java`. This executable is not the `apt` package manager of
Debian. Its call has to be removed to avoid an annoying notification.
Signed-off-by: Mattéo RossillolLaruelle <beatussum@protonmail.com>
---
.../app/gtk/widgets/headerbar/menu/settings/early_access.py | 4 ----
1 file changed, 4 deletions(-)
diff --git a/proton/vpn/app/gtk/widgets/headerbar/menu/settings/early_access.py b/proton/vpn/app/gtk/widgets/headerbar/menu/settings/early_access.py
index 43a5694..affc693 100644
--- a/proton/vpn/app/gtk/widgets/headerbar/menu/settings/early_access.py
+++ b/proton/vpn/app/gtk/widgets/headerbar/menu/settings/early_access.py
@@ -380,10 +380,6 @@ class EarlyAccessWidget(ToggleWidget):
future.add_done_callback(on_handle_early_access)
def _get_system_distro_manager(self) -> Optional[DistroManager]:
- for supported_distro_manager in self.SUPPORTED_DISTRO_MANAGERS:
- if shutil.which(supported_distro_manager.name):
- return supported_distro_manager
-
return None
def _restore_switch_to_previous_state(self):
--
2.49.0

View File

@@ -34,6 +34,8 @@ RDEPEND="
')
"
PATCHES=( "${FILESDIR}/${P}-remove-call-to-apt.patch" )
src_install() {
distutils-r1_src_install