[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.4-470-g59b44f4
Shawn Moore
sartak at bestpractical.com
Tue Nov 16 17:05:30 EST 2010
The branch, 3.9-trunk has been updated
via 59b44f437e182eeacea9f12b70e10ce49da3511d (commit)
from 4dff86b2c4dfdc6ff3d05adf04f70029335811cc (commit)
Summary of changes:
sbin/rt-message-catalog | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 59b44f437e182eeacea9f12b70e10ce49da3511d
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Nov 16 17:05:24 2010 -0500
Fix some File::Temp usage in rt-message-catalog
diff --git a/sbin/rt-message-catalog b/sbin/rt-message-catalog
index a7e02dd..1c76db5 100755
--- a/sbin/rt-message-catalog
+++ b/sbin/rt-message-catalog
@@ -51,6 +51,7 @@ use warnings;
use Locale::PO;
use Getopt::Long;
+use File::Temp 'tempdir';
my %commands = (
stats => { },
@@ -187,7 +188,7 @@ sub rosetta {
my $dir;
if ( $url =~ m{^[a-z]+://} ) {
- $dir = File::Temp::tempdir();
+ $dir = tempdir();
my ($fname) = $url =~ m{([^/]+)$};
print "Downloading $url\n";
@@ -225,7 +226,6 @@ sub rosetta {
print "$_ -> $fn_orig\n";
# retain the "NOT FOUND IN SOURCE" entries
- require File::Temp;
my $tmp = File::Temp->new;
system("sed -e 's/^#~ //' $_ > $tmp");
my $ext = Locale::Maketext::Extract->new;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list