summaryrefslogtreecommitdiff
path: root/debian/patches/95_fix_empty_input.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/95_fix_empty_input.patch')
-rw-r--r--debian/patches/95_fix_empty_input.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/debian/patches/95_fix_empty_input.patch b/debian/patches/95_fix_empty_input.patch
new file mode 100644
index 0000000..fe6470b
--- /dev/null
+++ b/debian/patches/95_fix_empty_input.patch
@@ -0,0 +1,42 @@
+Don't fail when enter is pressed at an input prompt; closes: #345614.
+
+Depends on 87_use_existing_cddb_category.patch
+
+
+diff -urN jack-3.1.1~/jack_prepare.py jack-3.1.1/jack_prepare.py
+--- jack-3.1.1~/jack_prepare.py 2006-01-02 10:15:43.000000000 +0100
++++ jack-3.1.1/jack_prepare.py 2006-01-02 10:18:24.000000000 +0100
+@@ -487,8 +487,8 @@
+ if jack_freedb.freedb_query(jack_freedb.freedb_id(jack_ripstuff.all_tracks), jack_ripstuff.all_tracks, cf['_freedb_form_file']):
+ if cf['_cont_failed_query']:
+
+- x = raw_input("\nfreedb search failed, continue? ") + "x"
+- if string.upper(x[0]) != "Y":
++ x = raw_input("\nfreedb search failed, continue? (y/N) ") + "x"
++ if not x or x[0].upper() != "Y":
+ sys.exit(0)
+ cf['_query_on_start'] = 0
+ else:
+@@ -519,7 +519,7 @@
+ print
+ print pdiff
+ x = raw_input("Would you like to submit these changes to the FreeDB server? (y/N) ")
+- if string.upper(x[0]) == "Y":
++ if x and x[0].upper() == "Y":
+ jack_freedb.update_revision(file)
+ freedb_submit(jack_progress.status_all['freedb_cat'])
+
+@@ -753,11 +753,11 @@
+ print "/\\" * 40
+ for i in remove_q:
+ print i
+- x = raw_input("These files will be deleted, continue? ") + "x"
++ x = raw_input("These files will be deleted, continue? (y/N) ") + "x"
+ if cf['_force']:
+ info("(forced)")
+ else:
+- if string.upper(x[0]) != "Y":
++ if not x or x[0].upper() != "Y":
+ sys.exit(0)
+
+ for i in remove_q: