Package: jack / 3.1.1+cvs20050801-31

15_imagefile_abspath.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
If an image file is specified without a toc file, print a warning that the
TOC will be obtained from the CD; also use the absolute path of the image
file since we're about to change cwd.  Debian #338697.

diff -urN jack-3.1.1~/jack_prepare.py jack-3.1.1/jack_prepare.py
--- jack-3.1.1~/jack_prepare.py	2005-11-12 18:54:42.000000000 +0000
+++ jack-3.1.1/jack_prepare.py	2005-11-12 18:55:28.000000000 +0000
@@ -62,6 +62,9 @@
                     cf['_image_toc_file'] = os.path.abspath(cf['_image_toc_file'])
                     jack_ripstuff.all_tracks, dummy, dummy = jack_functions.cdrdao_gettoc(cf['_image_toc_file'])
                 else:
+                    if cf['_image_file']:
+                        warning("No TOC file for image '%s' specified, reading TOC from CD device." % cf['_image_file'])
+                        cf['_image_file'] = os.path.abspath(cf['_image_file'])
                     jack_ripstuff.all_tracks = jack_functions.gettoc(cf['_toc_prog'])
                     toc_just_read = 1
                     # check that the generic device is usable, too