From 121a5acad06444373229baf5cb0c59bd21fe2cdb Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 9 May 2019 21:54:19 -0400 Subject: [PATCH] install: don't create calibre-uninstall for staged installs The uninstaller is only meant to be used on systems where calibre is being installed live. For staged installs, it can be assumed that the same mechanism which takes care of installing files from the staging dir to live systems, is also able to remove calibre when desired. Usually this will be a linux package manager. --- src/calibre/linux.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/linux.py b/src/calibre/linux.py index 8c8d31fc3e..6d692c61ce 100644 --- a/src/calibre/linux.py +++ b/src/calibre/linux.py @@ -723,7 +723,8 @@ class PostInstall: self.setup_completion() if islinux or isbsd: self.setup_desktop_integration() - self.create_uninstaller() + if not getattr(self.opts, 'staged_install', False): + self.create_uninstaller() from calibre.utils.config import config_dir if os.path.exists(config_dir):