calamares/calamares-1.0.1-add_smart_package_manager_support.patch
Silvan Calarco ad263cf8a0 patch packages module to support smart package manager
patch to fix plymouth path in grubcfg module for openmamba
patch to fix path in displaymanager module for openmamba
install icon for desktop file [release 1.0.1-5mamba;Thu Feb 19 2015]
2024-01-05 21:03:40 +01:00

42 lines
1.9 KiB
Diff

diff -Nru calamares-1.0.1.orig/src/modules/packages/main.py calamares-1.0.1/src/modules/packages/main.py
--- calamares-1.0.1.orig/src/modules/packages/main.py 2015-02-03 22:15:35.000000000 +0100
+++ calamares-1.0.1/src/modules/packages/main.py 2015-02-19 14:18:41.072354821 +0100
@@ -40,6 +40,8 @@
check_chroot_call(["apt-get", "-q", "-y", "install"] + pkgs)
elif self.backend == "pacman":
check_chroot_call(["pacman", "-Sy", "--noconfirm"] + pkgs)
+ elif self.backend == "smart":
+ check_chroot_call(["smart", "install", "-y"] + pkgs)
def remove(self, pkgs):
if self.backend == "packagekit":
@@ -59,6 +61,8 @@
check_chroot_call(["apt-get", "--purge", "-q", "-y", "autoremove"])
elif self.backend == "pacman":
check_chroot_call(["pacman", "-Rs", "--noconfirm"] + pkgs)
+ elif self.backend == "smart":
+ check_chroot_call(["smart", "remove", "-y"] + pkgs)
def run_operations(pkgman, entry):
for key in entry.keys():
@@ -69,7 +73,7 @@
def run():
backend = libcalamares.job.configuration.get("backend")
- if backend not in ("packagekit", "zypp", "yum", "dnf", "urpmi", "apt", "pacman"):
+ if backend not in ("packagekit", "zypp", "yum", "dnf", "urpmi", "apt", "pacman", "smart"):
return ("Bad backend", "backend=\"{}\"".format(backend))
pkgman = PackageManager(backend)
diff -Nru calamares-1.0.1.orig/src/modules/packages/packages.conf calamares-1.0.1/src/modules/packages/packages.conf
--- calamares-1.0.1.orig/src/modules/packages/packages.conf 2015-02-03 22:15:35.000000000 +0100
+++ calamares-1.0.1/src/modules/packages/packages.conf 2015-02-19 14:18:58.076363601 +0100
@@ -8,6 +8,7 @@
# - urpmi - Mandriva package manager
# - apt - APT frontend for DEB and RPM
# - pacman - Pacman
+# - smart - Smart package manager
#
backend: packagekit
#