2009-11-10 11:23:05 +00:00
|
|
|
Index: CDDB_get-2.27/cddb.pl
|
|
|
|
===================================================================
|
|
|
|
--- CDDB_get-2.27.orig/cddb.pl
|
|
|
|
+++ CDDB_get-2.27/cddb.pl
|
2008-03-05 03:47:22 +00:00
|
|
|
@@ -23,6 +23,7 @@
|
|
|
|
|
|
|
|
use Data::Dumper;
|
|
|
|
use Getopt::Std;
|
|
|
|
+use File::Temp qw/ tempfile tempdir /;
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
|
2009-11-10 11:23:05 +00:00
|
|
|
@@ -58,8 +59,8 @@ my %config;
|
2008-03-05 03:47:22 +00:00
|
|
|
my $diskid;
|
|
|
|
my $total;
|
|
|
|
my $toc;
|
|
|
|
-my $savedir="/tmp/cddb";
|
|
|
|
-my $xmcddir="/tmp/xmcd";
|
|
|
|
+my $savedir = tempdir( CLEANUP => 1 );
|
|
|
|
+my $xmcddir = tempdir( CLEANUP => 1 )."xmcd";
|
|
|
|
|
2009-11-10 11:23:05 +00:00
|
|
|
if($option{C}) {
|
|
|
|
# use CDDB_cache qw( get_cddb get_discids );
|