ripit 3.8.0 bug and patch

Bug #811849 reported by Ulli Horlacher
8
This bug affects 1 person
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.freedb.org...
        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{CDDB_HOST}...\n"
       if($verbose >= 1);
- eval {%cd = get_cddb(\%config);};
+ 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: patch lucid
tags: added: lucid patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.