Debian Codegraph @

debian/patches/wodim_for_cdrecord

raw
1 From: Gunnar Wolf <[email protected]>
2 Origin: vendor
3 Last-Update: 2009-12-27
4 Forwarded: not-needed
5 Description: Call wodim instead of cdrecord for CD burning
6 Debian does not package Schilly's cdrecord, but Wodim. This patch
7 substitutes all cdrecord references for Wodim ones.
8 .
9 Does not need to be forwarded upstream, as it is debian-specific
10 Index: mp3roaster/mp3roaster
11 ===================================================================
12 --- mp3roaster.orig/mp3roaster 2009-12-27 21:34:24.000000000 -0600
13 +++ mp3roaster/mp3roaster 2009-12-27 21:35:19.000000000 -0600
14 @@ -385,7 +385,7 @@
15 # fetch_atip_time
16 #
17 # This function fetches the ATIP of the CD/RW Disc.
18 -# We use the cdrecord application to get this infos.
19 +# We use the wodim application to get this infos.
20 #
21 # We return the ATIP time in seconds.
22 #
23 @@ -399,12 +399,12 @@
24
25 if (!$config_cdr_dev) {
26
27 - my $r_message = "You must specify the CDR/W drive id in the configuration file or with\n the option --drive x.y.z. Execute: % cdrecord \-scanbus for further details.";
28 + my $r_message = "You must specify the CDR/W drive id in the configuration file or with\n the option --drive x.y.z. Execute: % wodim \-scanbus for further details.";
29 die print_error($sub, $r_message);
30 }
31
32 - # open file and use "cdrecord -atip" to fetch ATIP info
33 - open(CDINFO,"cdrecord -atip dev=".$config_cdr_dev." 2>&1 |");
34 + # open file and use "wodim -atip" to fetch ATIP info
35 + open(CDINFO,"wodim -atip dev=".$config_cdr_dev." 2>&1 |");
36
37 while (<CDINFO>) {
38
39 @@ -1031,7 +1031,7 @@
40 # burn
41 #
42 # This function burns all wav files to a CD/RW disc
43 -# using the cdrecord application, if cdrecord returns
44 +# using the wodim application, if wodim returns
45 # an error code we print out an error message and die,
46 # else we go back to main without any return value.
47 #
48 @@ -1071,12 +1071,12 @@
49 }
50
51 # Let's burn folks -- Finally!
52 - $cmd = "cdrecord $cdrecord_options $burn_wav_list >/dev/null 2>&1";
53 + $cmd = "wodim $cdrecord_options $burn_wav_list >/dev/null 2>&1";
54 $rc = system($cmd);
55
56 if ($rc) {
57
58 - die print_error($sub, "the burn process was not successful,\n cdrecord error code $rc.");
59 + die print_error($sub, "the burn process was not successful,\n wodim error code $rc.");
60 }
61 }
62
63 @@ -1317,7 +1317,7 @@
64 =head1 ENVIRONMENT
65
66 MP3Roaster should run on all Unix like operating systems which have Perl and
67 -cdrecord installed. It has been developed on Debian GNU/Linux.
68 +wodim installed. It has been developed on Debian GNU/Linux.
69
70 =head1 OPTIONS
71
72 @@ -1460,7 +1460,7 @@
73
74 =head1 SEE ALSO
75
76 -cdrecord.
77 +wodim.
78
79 =head1 AUTHOR
80