[Bps-public-commit] r16269 - in Pushmi/trunk: Pushmi-Admin/lib/Pushmi/Admin/Model

alexmv at bestpractical.com alexmv at bestpractical.com
Fri Oct 10 16:09:35 EDT 2008


Author: alexmv
Date: Fri Oct 10 16:09:31 2008
New Revision: 16269

Modified:
   Pushmi/trunk/   (props changed)
   Pushmi/trunk/Pushmi-Admin/lib/Pushmi/Admin/Model/Replica.pm

Log:
 r38096 at kohr-ah:  chmrr | 2008-10-10 16:07:10 -0400
  * Move config dump before mirror, to prevent warnings


Modified: Pushmi/trunk/Pushmi-Admin/lib/Pushmi/Admin/Model/Replica.pm
==============================================================================
--- Pushmi/trunk/Pushmi-Admin/lib/Pushmi/Admin/Model/Replica.pm	(original)
+++ Pushmi/trunk/Pushmi-Admin/lib/Pushmi/Admin/Model/Replica.pm	Fri Oct 10 16:09:31 2008
@@ -101,15 +101,17 @@
         $self->set_clean_name( $self->_clean_name );
 
         mkpath( $self->file_root );
+
+        YAML::DumpFile( $self->config_file, { username => $self->username, password => $self->password, authproxy_port => 11211 });
+
         eval {
             local $ENV{PUSHMI_CONFIG}  = $self->config_file;
             local $ENV{JIFTY_APP_ROOT} = Jifty::Util->app_root;
             Pushmi::Command::Mirror->new->run( $self->svn_root, $self->url );
         };
         my $err = $@;
-
         warn $err if $err;
-        YAML::DumpFile( $self->config_file, { username => $self->username, password => $self->password, authproxy_port => 11211 });
+
         open(LOG, ">", $self->log_config_file ) or die "Can't write log config file @{[$self->log_config_file]}: $!";
         print LOG <<EOT;
 log4perl.rootLogger=DEBUG, Logfile, Event



More information about the Bps-public-commit mailing list