diff -Nuar a/src/modules/mudur/main.py b/src/modules/mudur/main.py --- a/src/modules/mudur/main.py 1970-01-01 02:00:00.000000000 +0200 +++ b/src/modules/mudur/main.py 2021-10-30 12:34:17.000000000 +0300 @@ -0,0 +1,66 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# === This file is part of Calamares - === +# +# Copyright 2014, Anke Boersma +# Copyright 2015, Philip Müller +# +# Calamares is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Calamares is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Calamares. If not, see . + +import os +import shutil + +import libcalamares + + + +def run(): + + install_path = libcalamares.globalstorage.value("rootMountPoint") + + + path = os.path.join(install_path, "etc/locale.conf") + + mloc = open(path,"r") + a=mloc.readline() + b=a.split("=")[1] + + languages = b.split("_")[0] + + + mudur_file_path = os.path.join(install_path, "etc/conf.d/mudur") + lines = [] + for l in open(mudur_file_path, "r").readlines(): + if l.strip().startswith('language=') or l.strip().startswith('# language='): + if languages == "pt": + l = 'language="pt_BR"\n' + else: + l = 'language="%s"\n' % languages + lines.append(l) + + open(mudur_file_path, "w").writelines(lines) + + if os.path.exists(os.path.join(install_path, "etc/sudoers")): + os.unlink(os.path.join(install_path, "etc/sudoers")) + + + source = os.path.join(install_path, "etc/sudoers.orig") + target = os.path.join(install_path, "etc/sudoers") + + shutil.copy(source, target) + + libcalamares.utils.target_env_call(['chmod', '440', '/etc/sudoers']) + + return None diff -Nuar a/src/modules/mudur/module.desc b/src/modules/mudur/module.desc --- a/src/modules/mudur/module.desc 1970-01-01 02:00:00.000000000 +0200 +++ b/src/modules/mudur/module.desc 2021-10-30 12:34:17.000000000 +0300 @@ -0,0 +1,6 @@ +--- +type: "job" +name: "mudur" +interface: "python" +script: "main.py" + diff -Nuar a/src/modules/packages/main.py b/src/modules/packages/main.py --- a/src/modules/packages/main.py 2023-04-24 23:33:41.000000000 +0300 +++ b/src/modules/packages/main.py 2023-10-31 14:05:35.506720508 +0300 @@ -321,17 +321,17 @@ libcalamares.utils.debug("Dummy backend: Running script '" + str(script) + "'") -class PMEntropy(PackageManager): - backend = "entropy" +class PMpisi(PackageManager): + backend = "pisi" def install(self, pkgs, from_local=False): - check_target_env_call(["equo", "i"] + pkgs) + check_target_env_call(["pisi", "it"] + pkgs) def remove(self, pkgs): - check_target_env_call(["equo", "rm"] + pkgs) + check_target_env_call(["pisi", "rm","--ignore-comar"] + pkgs) def update_db(self): - check_target_env_call(["equo", "update"]) + pass def update_system(self): # Doesn't need to update the system explicitly diff -Nuar a/src/modules/partition/gui/EncryptWidget.cpp b/src/modules/partition/gui/EncryptWidget.cpp --- a/src/modules/partition/gui/EncryptWidget.cpp 2023-04-24 23:33:41.000000000 +0300 +++ b/src/modules/partition/gui/EncryptWidget.cpp 2023-10-31 14:07:10.411534035 +0300 @@ -45,6 +45,7 @@ m_ui->m_passphraseLineEdit->hide(); m_ui->m_confirmLineEdit->hide(); m_ui->m_iconLabel->hide(); + m_ui->m_encryptCheckBox->hide(); // TODO: this deserves better rendering, an icon or something, but that will // depend on having a non-bogus implementation of systemSupportsEncryptionAcceptably if ( systemSupportsEncryptionAcceptably() )