6
6
# - Disable setup_desktop_integration, since this uses the xdg tools.
7
7
# This totally does not work for package build time, we use static
8
8
# files in debian/local/ instead.
9
Index: calibre-0.5.13+dfsg/setup.py
9
Index: calibre-0.6.3+dfsg/setup.py
10
10
===================================================================
11
--- calibre-0.5.13+dfsg.orig/setup.py 2009-05-21 17:38:21.000000000 +0200
12
+++ calibre-0.5.13+dfsg/setup.py 2009-05-26 09:21:55.000000000 +0200
11
--- calibre-0.6.3+dfsg.orig/setup.py 2009-07-30 00:59:00.000000000 +0200
12
+++ calibre-0.6.3+dfsg/setup.py 2009-07-30 10:37:05.000000000 +0200
14
14
upload_to_pypi, stage3, stage2, stage1, upload, \
17
17
- entry_points['console_scripts'].append(
18
18
- 'calibre_postinstall = calibre.linux:post_install')
24
24
if 'develop' in ' '.join(sys.argv) and islinux:
25
25
subprocess.check_call('calibre_postinstall --do-not-reload-udev-hal', shell=True)
26
26
- if 'install' in sys.argv and islinux:
27
27
- subprocess.check_call('calibre_postinstall', shell=True)
29
Index: calibre-0.5.13+dfsg/src/calibre/linux.py
29
Index: calibre-0.6.3+dfsg/src/calibre/linux.py
30
30
===================================================================
31
--- calibre-0.5.13+dfsg.orig/src/calibre/linux.py 2009-05-21 17:38:21.000000000 +0200
32
+++ calibre-0.5.13+dfsg/src/calibre/linux.py 2009-05-26 09:21:40.000000000 +0200
31
--- calibre-0.6.3+dfsg.orig/src/calibre/linux.py 2009-07-30 00:59:00.000000000 +0200
32
+++ calibre-0.6.3+dfsg/src/calibre/linux.py 2009-07-30 10:38:02.000000000 +0200
35
35
use_destdir = opts.destdir
38
38
if opts.no_root or os.geteuid() == 0:
39
39
manifest += install_man_pages(opts.fatal_errors, use_destdir)
40
40
manifest += setup_udev_rules(opts.group_file, not opts.dont_reload, opts.fatal_errors)
42
42
if opts.save_manifest_to:
43
43
open(opts.save_manifest_to, 'wb').write('\n'.join(manifest)+'\n')
47
47
- os.chdir(config_dir)
48
48
- for f in os.listdir('.'):
49
49
- if os.stat(f).st_uid == 0:
50
- os.rmdir(f) if os.path.isdir(f) else os.unlink(f)
51
- if os.stat(config_dir).st_uid == 0:
52
- os.rmdir(config_dir)
52
54
def binary_install():
53
55
manifest = os.path.join(getattr(sys, 'frozen_path'), 'manifest')