~ubuntu-branches/ubuntu/karmic/normalize-audio/karmic-security

« back to all changes in this revision

Viewing changes to debian/patches/fix-exdev-error.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Joachim Reichel
  • Date: 2007-09-02 22:21:29 UTC
  • Revision ID: james.westby@ubuntu.com-20070902222129-yycn02ikze50ls80
Tags: 0.7.7-2
* New maintainer (Closes: #406511)
* Use File::Copy instead of rename to avoid EXDEV (Closes: #336808, #337396)
* Use dpatch to handle patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## fix-exdev-error.dpatch by Joachim Reichel <joachim.reichel@gmx.de>
 
3
##
 
4
## DP: use move instead of rename to avoid EXDEV, see #336808 and #337396
 
5
 
 
6
@DPATCH@
 
7
diff -urNad normalize-audio-0.7.7~/src/normalize-mp3.in normalize-audio-0.7.7/src/normalize-mp3.in
 
8
--- normalize-audio-0.7.7~/src/normalize-mp3.in 2007-09-02 22:14:00.000000000 +0200
 
9
+++ normalize-audio-0.7.7/src/normalize-mp3.in  2007-09-02 22:14:38.000000000 +0200
 
10
@@ -47,6 +47,7 @@
 
11
 #######################################################################
 
12
 
 
13
 use Fcntl;
 
14
+use File::Copy;
 
15
 
 
16
 sub usage {
 
17
     print <<EOF
 
18
@@ -214,7 +215,7 @@
 
19
            close(IN);
 
20
            close(OUT);
 
21
            unlink $fname;
 
22
-           rename($tmpfile, $fname)
 
23
+           move($tmpfile, $fname)
 
24
                || die "Can't rename temp file, leaving in $tmpfile, stopped";
 
25
        }
 
26
     }