Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
Discover
Commits
e8d0f4b9
Commit
e8d0f4b9
authored
Oct 18, 2017
by
Aleix Pol Gonzalez
🐧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it possible to use offline updates
Should satisfy Neon needs
parent
cf301cdf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
libdiscover/backends/PackageKitBackend/PackageKitUpdater.cpp
libdiscover/backends/PackageKitBackend/PackageKitUpdater.cpp
+6
-2
No files found.
libdiscover/backends/PackageKitBackend/PackageKitUpdater.cpp
View file @
e8d0f4b9
...
...
@@ -142,9 +142,10 @@ void PackageKitUpdater::proceed()
{
if
(
!
m_proceedFunctions
.
isEmpty
())
{
processProceedFunction
();
}
else
{
}
else
if
(
qEnvironmentVariableIsSet
(
"PK_OFFLINE_UPDATE"
))
setupTransaction
(
PackageKit
::
Transaction
::
TransactionFlagOnlyTrusted
|
PackageKit
::
Transaction
::
TransactionFlagOnlyDownload
);
else
setupTransaction
(
PackageKit
::
Transaction
::
TransactionFlagOnlyTrusted
);
}
}
void
PackageKitUpdater
::
start
()
...
...
@@ -178,6 +179,9 @@ void PackageKitUpdater::finished(PackageKit::Transaction::Exit exit, uint /*time
setProgressing
(
false
);
m_backend
->
refreshDatabase
();
fetchLastUpdateTime
();
if
(
qEnvironmentVariableIsSet
(
"PK_OFFLINE_UPDATE"
))
PackageKit
::
Daemon
::
global
()
->
offlineTrigger
(
PackageKit
::
Daemon
::
ActionReboot
);
}
void
PackageKitUpdater
::
cancellableChanged
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment