$min_script_version = "99.99";
$min_web_script_version = "99.99";
-# captcha keys for site
+# captcha keys for site. Get your own ReCaptcha site info.
$captcha_pubkey = 'foo';
$captcha_privkey = 'bar';
+# Copy of git tree to compare client references to
+$local_git_clone = '/home/farm/git/exim/exim.git';
+$user_list_format = "%-10s %-10s %-18s %-22s %-18s %-s\n";
+# Uncomment to get extra info
+# $ENV{BF_DEBUG} = 1;
1;
chomp $githeadref;
close $githead;
}
- # unlink $archname;
+ unlink $archname;
}
my $config_flags;
die "Must pass current sysname and new sysname\n" unless scalar @ARGV == 2;
use vars qw($dbhost $dbname $dbuser $dbpass $dbport
+ $user_list_format
);
require "$ENV{BFConfDir}/BuildFarmWeb.pl";
die $DBI::errstr unless $db;
-#my $sth_up = $db->prepare(q[
-# SELECT approve(?, ?)
-# ]);
-#$sth_up->execute(@ARGV);
$db->do('SELECT approve(?, ?)', undef, @ARGV);
my $sth = $db->prepare(q[
]);
$sth->execute();
-my $format = "%-10s %-10s %-18s %-20s %-18s %-s\n";
-printf $format, "SysName", "Status", "Owner", "Email", "Distro", "Version";
+printf $user_list_format,
+ "SysName", "Status", "Owner", "Email", "Distro", "Version";
while (my $row = $sth->fetchrow_hashref)
{
- printf $format, $row->{name}, $row->{status}, $row->{sys_owner},
+ printf $user_list_format,
+ $row->{name}, $row->{status}, $row->{sys_owner},
$row->{owner_email}, $row->{operating_system},
$row->{os_version};
}
use Data::Dumper;
use vars qw($dbhost $dbname $dbuser $dbpass $dbport
+ $user_list_format
);
require "$ENV{BFConfDir}/BuildFarmWeb.pl";
]);
$sth->execute();
-my $format = "%-10s %-10s %-18s %-20s %-18s %-s\n";
-printf $format, "SysName", "Status", "Owner", "Email", "Distro", "Version";
+printf $user_list_format, "SysName", "Status", "Owner", "Email", "Distro", "Version";
while (my $row = $sth->fetchrow_hashref)
{
- printf $format, $row->{name}, $row->{status}, $row->{sys_owner},
+ printf $user_list_format,
+ $row->{name}, $row->{status}, $row->{sys_owner},
$row->{owner_email}, $row->{operating_system},
$row->{os_version};
}
die "Must pass current and new sysnames\n" unless scalar @ARGV == 2;
use vars qw($dbhost $dbname $dbuser $dbpass $dbport
+ $user_list_format
);
require "$ENV{BFConfDir}/BuildFarmWeb.pl";
]);
$sth->execute();
-my $format = "%-10s %-10s %-18s %-20s %-18s %-s\n";
-printf $format, "SysName", "Status", "Owner", "Email", "Distro", "Version";
+my $user_list_format = "%-10s %-10s %-18s %-20s %-18s %-s\n";
+printf $user_list_format,
+ "SysName", "Status", "Owner", "Email", "Distro", "Version";
while (my $row = $sth->fetchrow_hashref)
{
- printf $format, $row->{name}, $row->{status}, $row->{sys_owner},
+ printf $user_list_format,
+ $row->{name}, $row->{status}, $row->{sys_owner},
$row->{owner_email}, $row->{operating_system},
$row->{os_version};
}