diff options
author | Perl Tidy <perltidy@bugzilla.org> | 2018-12-05 21:38:52 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-12-05 23:49:08 +0100 |
commit | 8ec8da0491ad89604700b3e29a227966f6d84ba1 (patch) | |
tree | 9d270f173330ca19700e0ba9f2ee931300646de1 /migrate.pl | |
parent | a7bb5a65b71644d9efce5fed783ed545b9336548 (diff) | |
download | bugzilla-8ec8da0491ad89604700b3e29a227966f6d84ba1.tar.gz bugzilla-8ec8da0491ad89604700b3e29a227966f6d84ba1.tar.xz |
no bug - reformat all the code using the new perltidy rules
Diffstat (limited to 'migrate.pl')
-rwxr-xr-x | migrate.pl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/migrate.pl b/migrate.pl index 8980248c7..907e0cab5 100755 --- a/migrate.pl +++ b/migrate.pl @@ -25,7 +25,7 @@ GetOptions(\%switch, 'help|h|?', 'from=s', 'verbose|v+', 'dry-run'); # Print the help message if that switch was selected or if --from # wasn't specified. if (!$switch{'from'} or $switch{'help'}) { - pod2usage({-exitval => 1}); + pod2usage({-exitval => 1}); } my $migrator = Bugzilla::Migrate->load($switch{'from'}); @@ -37,13 +37,13 @@ $migrator->do_migration(); # Even if there's an error, we want to be sure that the serial values # get reset properly. END { - if ($migrator and $migrator->dry_run) { - my $dbh = Bugzilla->dbh; - if ($dbh->bz_in_transaction) { - $dbh->bz_rollback_transaction(); - } - $migrator->reset_serial_values(); + if ($migrator and $migrator->dry_run) { + my $dbh = Bugzilla->dbh; + if ($dbh->bz_in_transaction) { + $dbh->bz_rollback_transaction(); } + $migrator->reset_serial_values(); + } } __END__ @@ -96,4 +96,4 @@ the size of all attachments in your current bug-tracker. You may also need to increase the number of file handles a process is allowed to hold open (as the migrator will create a file handle for each attachment in your database). On Linux and simliar systems, you can do this as root -by typing C<ulimit -n 65535> before running your script.
\ No newline at end of file +by typing C<ulimit -n 65535> before running your script. |