0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-22 13:43:04 -05:00

add tumbleweed-bootstrap.patch

This commit is contained in:
Malte Jürgens 2022-07-19 15:39:37 +02:00
parent 58664b87bc
commit 4f71037be4
No known key found for this signature in database
GPG key ID: D29FBD5F93C0CFC3
2 changed files with 58 additions and 0 deletions

View file

@ -12,6 +12,7 @@ patches/sed-patches/allow-searchengines-non-esr.patch
patches/sed-patches/disable-pocket.patch
patches/sed-patches/remove-internal-plugin-certs.patch
patches/sed-patches/stop-undesired-requests.patch
patches/tumbleweed-bootstrap.patch
patches/ui-patches/handlers.patch
patches/ui-patches/hide-default-browser.patch
patches/ui-patches/lw-logo-devtools.patch

View file

@ -0,0 +1,57 @@
--- a/python/mozboot/mozboot/opensuse.py
+++ b/python/mozboot/mozboot/opensuse.py
@@ -16,6 +16,7 @@ class OpenSUSEBootstrapper(LinuxBootstrapper, BaseBootstrapper):
"rpmconf",
"libcurl-devel",
"libpulse-devel",
+ "unzip",
]
BROWSER_PACKAGES = [
@@ -23,7 +24,6 @@ class OpenSUSEBootstrapper(LinuxBootstrapper, BaseBootstrapper):
"gcc-c++",
"gtk3-devel",
"dbus-1-glib-devel",
- "gconf2-devel",
"glibc-devel-static",
"libstdc++-devel",
"libXt-devel",
@@ -97,29 +97,19 @@ class OpenSUSEBootstrapper(LinuxBootstrapper, BaseBootstrapper):
self(["pip3", "install", "--upgrade", "pip", "--user"])
self(["pip3", "install", "--upgrade", "Mercurial", "--user"])
- def zypper_install(self, *packages):
- command = ["zypper", "install"]
+ def zypper(self, *args):
if self.no_interactive:
- command.append("-n")
-
- command.extend(packages)
+ command = ["zypper", "-n", *args]
+ else:
+ command = ["zypper", *args]
self.run_as_root(command)
- def zypper_update(self, *packages):
- command = ["zypper", "update"]
- if self.no_interactive:
- command.append("-n")
-
- command.extend(packages)
+ def zypper_install(self, *packages):
+ self.zypper("install", *packages)
- self.run_as_root(command)
+ def zypper_update(self, *packages):
+ self.zypper("update", *packages)
def zypper_patterninstall(self, *packages):
- command = ["zypper", "install", "-t", "pattern"]
- if self.no_interactive:
- command.append("-y")
-
- command.extend(packages)
-
- self.run_as_root(command)
+ self.zypper("install", "-t", "pattern", *packages)