diff options
Diffstat (limited to 'debian/patches/94_addstr_error.patch')
-rw-r--r-- | debian/patches/94_addstr_error.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/debian/patches/94_addstr_error.patch b/debian/patches/94_addstr_error.patch new file mode 100644 index 0000000..a19be71 --- /dev/null +++ b/debian/patches/94_addstr_error.patch @@ -0,0 +1,40 @@ +Debian bug #401127, related to #387648 (99_addstr_error.patch). Probably a +workaround, not a real fix. + + +I see tracebacks like this a lot when the tags have "funny" characters: + +Traceback (most recent call last): + File "/usr/bin/jack", line 235, in ? + global_error = jack_main_loop.main_loop(mp3s_todo, wavs_todo, space, dae_queue, enc_queue, track1_offset) + File "/var/lib/python-support/python2.3/jack_main_loop.py", line 374, in main_loop + jack_status.dae_stat_upd(i['track'][NUM], ":DAE: " + new_status) + File "/var/lib/python-support/python2.3/jack_status.py", line 51, in dae_stat_upd + jack_term.tmod.dae_stat_upd(num, string) + File "/var/lib/python-support/python2.3/jack_t_curses.py", line 262, in dae_stat_upd + status_pad.addstr(map_track_num[num], 0, (jack_ripstuff.printable_names[num] + ": " + jack_status.dae_status[num] + " " + jack_status.enc_status[num])) +curses.error: addstr() returned ERR + *warning* abnormal exit + + +It's just a display error; it really shouldn't abort jack. The following +patch makes it not abort: + + +diff -dU3 /tmp/old.py /var/lib/python-support/python2.3/jack_main_loop.py +--- a/old.py 2006-11-30 19:08:06.000000000 -0500 ++++ b/jack_main_loop.py 2006-11-30 19:00:31.000000000 -0500 +@@ -371,7 +371,10 @@ + else: + exec(jack_helpers.helpers[i['prog']]['status_fkt']) in globals(), locals() + if new_status: +- jack_status.dae_stat_upd(i['track'][NUM], ":DAE: " + new_status) ++ try: ++ jack_status.dae_stat_upd(i['track'][NUM], ":DAE: " + new_status) ++ except: ++ debug("error in dae_stat_upd") + + elif i['type'] == "encoder": + if len(i['buf']) == jack_helpers.helpers[i['prog']]['status_blocksize']: + + |