mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
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:
parent
adcc2c5539
commit
121a5acad0
@ -723,7 +723,8 @@ class PostInstall:
|
|||||||
self.setup_completion()
|
self.setup_completion()
|
||||||
if islinux or isbsd:
|
if islinux or isbsd:
|
||||||
self.setup_desktop_integration()
|
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
|
from calibre.utils.config import config_dir
|
||||||
if os.path.exists(config_dir):
|
if os.path.exists(config_dir):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user