[freeside-commits] freeside/FS/bin freeside-paymentech-download, 1.1.2.2, 1.1.2.3 freeside-paymentech-upload, 1.1.2.2, 1.1.2.3
Ivan,,,
ivan at wavetail.420.am
Tue Nov 3 11:03:20 PST 2009
Update of /home/cvs/cvsroot/freeside/FS/bin
In directory wavetail.420.am:/tmp/cvs-serv10139
Modified Files:
Tag: FREESIDE_1_9_BRANCH
freeside-paymentech-download freeside-paymentech-upload
Log Message:
fix usage of File::Temp->newdir, not in 0.18 File::Temp on perl 5.10.0, RT#5650
Index: freeside-paymentech-upload
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/bin/freeside-paymentech-upload,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -d -r1.1.2.2 -r1.1.2.3
--- freeside-paymentech-upload 3 Nov 2009 18:54:19 -0000 1.1.2.2
+++ freeside-paymentech-upload 3 Nov 2009 19:03:18 -0000 1.1.2.3
@@ -2,6 +2,8 @@
use strict;
use Getopt::Std;
+use Date::Format qw(time2str);
+use File::Temp qw(tempdir); #0.19 for ->newdir() interface, not in 5.10.0
use Net::SFTP::Foreign;
use FS::UID qw(adminsuidsetup datasrc);
use FS::Record qw(qsearch qsearchs);
@@ -9,21 +11,16 @@
use FS::cust_pay_batch;
use FS::Conf;
-use Date::Format 'time2str';
-use File::Temp;
-
use vars qw( $opt_a $opt_t $opt_v );
getopts('avt');
#$Net::SFTP::Foreign::debug = -1;
-sub usage { '
+sub usage { "
Usage:
paymentech-upload [ -v ] [ -t ] user batchnum
- paymentech-upload -a [ -v ] [ -t ] user
-
-'
-}
+ paymentech-upload -a [ -v ] [ -t ] user\n
+" }
my $user = shift or die &usage;
adminsuidsetup $user;
@@ -47,7 +44,8 @@
my $username = $batchconf[3] or die "no Paymentech batch username configured\n";
my $password = $batchconf[4] or die "no Paymentech batch password configured\n";
-my $tmpdir = File::Temp->newdir();
+#my $tmpdir = File::Temp->newdir();
+my $tmpdir = tempdir( CLEANUP => 1 ); #DIR=>somewhere?
my @filenames;
Index: freeside-paymentech-download
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/bin/freeside-paymentech-download,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -d -r1.1.2.2 -r1.1.2.3
--- freeside-paymentech-download 3 Nov 2009 18:54:19 -0000 1.1.2.2
+++ freeside-paymentech-download 3 Nov 2009 19:03:18 -0000 1.1.2.3
@@ -2,6 +2,8 @@
use strict;
use Getopt::Std;
+use Date::Format qw(time2str);
+use File::Temp qw(tempdir); #0.19 for ->newdir() interface, not in 5.10.0
use Net::SFTP::Foreign;
use FS::UID qw(adminsuidsetup datasrc);
use FS::Record qw(qsearch qsearchs);
@@ -9,19 +11,14 @@
use FS::cust_pay_batch;
use FS::Conf;
-use Date::Format 'time2str';
-use File::Temp;
-
use vars qw( $opt_t $opt_v $opt_a );
getopts('vta:');
#$Net::SFTP::Foreign::debug = -1;
-sub usage { '
+sub usage { "
Usage:
- paymentech-download [ -v ] [ -t ] [ -a archivedir ] user
-
-'
-}
+ paymentech-download [ -v ] [ -t ] [ -a archivedir ] user\n
+" }
my $user = shift or die &usage;
adminsuidsetup $user;
@@ -33,7 +30,8 @@
unless -w $opt_a;
}
-my $tmpdir = File::Temp->newdir();
+#my $tmpdir = File::Temp->newdir();
+my $tmpdir = tempdir( CLEANUP => 1 ); #DIR=>somewhere?
my $conf = new FS::Conf;
my @batchconf = $conf->config('batchconfig-paymentech');
More information about the freeside-commits
mailing list