File: 2000-apt-not-pip.patch

package info (click to toggle)
opensnitch 1.6.9-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 5,976 kB
  • sloc: python: 12,604; ansic: 1,965; sh: 435; makefile: 239; xml: 50; sql: 3
file content (39 lines) | stat: -rw-r--r-- 2,150 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Description: Do not propose use of pip on Debian
 Dependencies should be fetched from the curated Debian archive.
Author: Petter Reinholdtsen <pere@debian.org>
Forwarded: not-needed
Last-Update: 2025-04-19
---
--- opensnitch-1.6.8.orig/ui/opensnitch/dialogs/firewall_rule.py
+++ opensnitch-1.6.8/ui/opensnitch/dialogs/firewall_rule.py
@@ -377,7 +377,7 @@ The value must be in the format: VALUE/U
             self._set_status_error(
                 QC.translate(
                     "firewall",
-                    "Your protobuf version is incompatible, you need to install protobuf 3.8.0 or superior\n(pip3 install --ignore-installed protobuf==3.8.0)"
+                    "Your protobuf version is incompatible, you need to install protobuf 3.8.0 or superior\n(apt install protobuf-api-32-0)"
                 )
             )
             return False
--- opensnitch-1.6.8.orig/ui/opensnitch/dialogs/preferences.py
+++ opensnitch-1.6.8/ui/opensnitch/dialogs/preferences.py
@@ -258,7 +258,7 @@ class PreferencesDialog(QtWidgets.QDialo
             self._saved_theme = ""
             self.labelThemeError.setStyleSheet('color: red')
             self.labelThemeError.setVisible(True)
-            self.labelThemeError.setText(QC.translate("preferences", "Themes not available. Install qt-material: pip3 install qt-material"))
+            self.labelThemeError.setText(QC.translate("preferences", "Themes not available. Install qt-material: apt install python3-qt-material"))
 
         self.comboUITheme.setCurrentIndex(theme_idx)
         self._show_ui_density_widgets(theme_idx)
--- opensnitch-1.6.8.orig/ui/opensnitch/utils/__init__.py
+++ opensnitch-1.6.8/ui/opensnitch/utils/__init__.py
@@ -109,7 +109,7 @@ class Themes():
         from qt_material import list_themes as qtmaterial_themes
         AVAILABLE = True
     except Exception:
-        print("Themes not available. Install qt-material if you want to change GUI's appearance: pip3 install qt-material.")
+        print("Themes not available. Install qt-material if you want to change GUI's appearance: apt install python3-qt-material.")
 
     @staticmethod
     def instance():