Package: jack / 3.1.1+cvs20050801-31

55_fix_sloppy.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Fix "replace" call in undocumented command line option.  Debian #362676

1126:tbm@reyes: ~/tmp/jack] jack "--I-swear-I'll-never-give-these-files-to-anyone,-including-hot-babes-TM"
This is jack 3.1.1 (C)2004 Arne Zellentin <zarne@users.sf.net>
Traceback (most recent call last):
  File "/usr/bin/jack", line 88, in ?
    jack_checkopts.consistency_check(cf)
  File "/usr/lib/python2.3/site-packages/jack_checkopts.py", line 211, in consistency_check
    jack_helpers.helpers['cdparanoia']['cmd'] = replace(jack_helpers.helpers['cdparanoia']['cmd'], "--abort-on-skip", "")
NameError: global name 'replace' is not defined


--- a/jack_checkopts.py~	2006-04-15 19:20:23.000000000 +0200
+++ b/jack_checkopts.py	2006-04-15 19:21:06.000000000 +0200
@@ -208,8 +208,8 @@
         error("can't do fixed bitrate because " + cf['encoder']['val'] + " doesn't support it. Use -v")
 
     if cf['_ripper'] == "cdparanoia" and cf['_sloppy']:
-        jack_helpers.helpers['cdparanoia']['cmd'] = replace(jack_helpers.helpers['cdparanoia']['cmd'], "--abort-on-skip", "")
-        jack_helpers.helpers['cdparanoia']['otf-cmd'] = replace(jack_helpers.helpers['cdparanoia']['otf-cmd'], "--abort-on-skip", "")
+        jack_helpers.helpers['cdparanoia']['cmd'] = jack_helpers.helpers['cdparanoia']['cmd'].replace("--abort-on-skip", "")
+        jack_helpers.helpers['cdparanoia']['otf-cmd'] = jack_helpers.helpers['cdparanoia']['otf-cmd'].replace("--abort-on-skip", "")
 
     if cf['_query_on_start'] and cf['_query_when_ready']:
         error("it doesn't make sense to query now _and_ when finished.")