summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Kang <jonathankang@gnome.org>2020-12-01 16:18:12 +0800
committerJonathan Kang <jonathankang@gnome.org>2020-12-02 15:08:37 +0800
commitcf73b01a677e787088e78a3572a51888ade1aa03 (patch)
treef777d5eafdb7baa169e140772eca4b087e24d001
parentff0181389dc281effbd274f6e1ae01e8905ddf8a (diff)
Revert "Revert "zypp: Clean up temporary files when PK quits""
packagekitd.service will be stopped on system shutdown and by manually doing so. Thus the main process will be killed eventually and we have to manually clean those tmporary libzypp files. This reverts commit d8dd484ddfcea4750495fa92dcd2f580149432e7. https://bugzilla.opensuse.org/show_bug.cgi?id=1169739
-rw-r--r--backends/zypp/pk-backend-zypp.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/zypp/pk-backend-zypp.cpp b/backends/zypp/pk-backend-zypp.cpp
index b1ce76915..9404abb1a 100644
--- a/backends/zypp/pk-backend-zypp.cpp
+++ b/backends/zypp/pk-backend-zypp.cpp
@@ -1840,6 +1840,8 @@ pk_backend_destroy (PkBackend *backend)
{
g_debug ("zypp_backend_destroy");
+ filesystem::recursive_rmdir (zypp::myTmpDir ());
+
g_free (_repoName);
delete priv;
}