aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'migrate.pl')
-rwxr-xr-xmigrate.pl14
1 files changed, 7 insertions, 7 deletions
diff --git a/migrate.pl b/migrate.pl
index eb2a84b59..061509027 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__