ripit 3.8.0 bug and patch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ripit (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When ripit (from Ubuntu 10.04) does not find a CD within freedb it gives an error:
RipIT version 3.8.0.
Will create a playlist file.
Checking for a DB entry @ freedb.
Odd number of elements in hash assignment at /tmp/ripit line 1137.
Use of uninitialized value in list assignment at /tmp/ripit line 1137.
This patch fixes the bug:
--- ripit 2011-07-17 12:46:18.000000000 +0200
+++ /usr/bin/ripit 2011-07-17 12:58:10.000000000 +0200
@@ -1134,7 +1134,11 @@
print "\nChecking for a DB entry \@ $config{
if($verbose >= 1);
- eval {%cd = get_cddb(
+ eval {
+ %cd = ();
+ my @cd = get_cddb(\%config);
+ %cd = @cd if scalar(@cd)/2 == int(scalar(@cd)/2);
+ };
if($@) {
$@ =~ s/db:\s/db:\n/;
$@ =~ s/at\s\//at\n\//;
tags: | added: lucid patch |