]> git.pld-linux.org Git - packages/bacula-backup-mysql.git/commitdiff
- save $!, to avoid rmtree globbering it auto/th/bacula-backup-mysql-0_3-4
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 24 Feb 2011 14:33:30 +0000 (14:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bacula-backup-mysql -> 1.11
    bacula-backup-mysql.spec -> 1.8

bacula-backup-mysql
bacula-backup-mysql.spec

index 32737d07dde3d7928947f35090ceed21174a9f19..d660ba04a5574a808a28a1fba3a4917154f75988 100644 (file)
@@ -99,8 +99,9 @@ sub mysqlhotcopy {
 
        my $srcdir = "$dstdir/$database";
        unless (rename($srcdir, $dirname)) {
+               my $err = $!;
                rmtree($dstdir);
-               die "Rename '$srcdir'->'$dirname' failed: $!\n";
+               die "Rename '$srcdir'->'$dirname' failed: $err\n";
        }
 
        rmdir($dstdir) or warn $!;
index 127626bd1bb76b9eb6903c1529d100e063725342..f8c67d64500d6591cce8d81e7178f1dd9dc53187 100644 (file)
@@ -2,7 +2,7 @@
 Summary:       MySQL backup hook for Bacula
 Name:          bacula-backup-mysql
 Version:       0.3
-Release:       3
+Release:       4
 License:       GPL v2
 Group:         Applications/Databases
 Source0:       %{name}
This page took 0.092228 seconds and 4 git commands to generate.