From 97eff53503b1953461b08b3775d5a7346541ec6e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 27 Sep 2009 23:10:59 -0600 Subject: [PATCH] IGN:Fix #3526 (Converting Mobipocket to MS Reader not working) --- src/calibre/linux.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/calibre/linux.py b/src/calibre/linux.py index 25d3542d42..62af807f4c 100644 --- a/src/calibre/linux.py +++ b/src/calibre/linux.py @@ -294,7 +294,11 @@ class PostInstall: if not os.path.exists(old_udev): old_udev = os.path.join(self.opts.staging_etc, 'udev/rules.d/95-calibre.rules') if os.path.exists(old_udev): - os.remove(old_udev) + try: + os.remove(old_udev) + except: + self.warn('Old udev rules found, please delete manually:', + old_udev) if self.opts.staging_root == '/usr': base = '/lib' else: