Skip to content

Commit

Permalink
fix: enable keep auth / add install check
Browse files Browse the repository at this point in the history
Keep auth when multi-packages installation;
Enhance installation check, if packge not support to
install, deepin-immutable-ctl is not called.

Log: Enable keep auth and enhance installation check.
Influence: immutable
  • Loading branch information
rb-union committed Nov 14, 2024
1 parent 9d637d8 commit a950b6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions src/deb-installer/model/deblistmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ void DebListModel::installDebs()
}

// for immutable system, if immutable is enabled, the normal installation process will not be entered
if (ImmBackend::instance()->immutableEnabled()) {
if (dependsStat.canInstall() && ImmBackend::instance()->immutableEnabled()) {
if (installImmutablePackage()) {
refreshOperatingPackageStatus(Pkg::Operating);
} else {
Expand Down Expand Up @@ -1731,7 +1731,10 @@ void DebListModel::ensureCompatibleProcessor()
connect(
m_compProcessor.data(), &Compatible::CompatibleProcessController::processOutput, this, [this](const QString &output) {
Q_EMIT signalAppendOutputInfo(output);
if (m_compProcessor->needTemplates()) {

if (configWindow->isVisible()) {
configWindow->appendTextEdit(output);
} else if (m_compProcessor->needTemplates()) {
configWindow->appendTextEdit(output);
configWindow->show();
}
Expand Down Expand Up @@ -1806,7 +1809,10 @@ void DebListModel::ensureImmutableProcessor()
connect(
m_immProcessor.data(), &Immutable::ImmutableProcessController::processOutput, this, [this](const QString &output) {
Q_EMIT signalAppendOutputInfo(output);
if (m_immProcessor->needTemplates()) {

if (configWindow->isVisible()) {
configWindow->appendTextEdit(output);
} else if (m_immProcessor->needTemplates()) {
configWindow->appendTextEdit(output);
configWindow->show();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin</allow_active>
<allow_active>auth_admin_keep</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/deepin-deb-installer-dependsInstall</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
Expand Down

0 comments on commit a950b6e

Please sign in to comment.