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.
This commit is contained in:
Eli Schwartz 2019-05-09 21:54:19 -04:00
parent adcc2c5539
commit 121a5acad0
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6

View File

@ -723,6 +723,7 @@ class PostInstall:
self.setup_completion() self.setup_completion()
if islinux or isbsd: if islinux or isbsd:
self.setup_desktop_integration() self.setup_desktop_integration()
if not getattr(self.opts, 'staged_install', False):
self.create_uninstaller() self.create_uninstaller()
from calibre.utils.config import config_dir from calibre.utils.config import config_dir