git://git.exim.org
/
buildfarm-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
60b6200
)
Use global list format string
author
Todd Lyons
<tlyons@exim.org>
Tue, 22 Oct 2013 22:55:58 +0000
(15:55 -0700)
committer
Todd Lyons
<tlyons@exim.org>
Tue, 22 Oct 2013 22:55:58 +0000
(15:55 -0700)
BuildFarmWeb.pl.skel
patch
|
blob
|
history
cgi-bin/eximstatus.pl
patch
|
blob
|
history
scripts/approve_system.pl
patch
|
blob
|
history
scripts/list_buildsystems.pl
patch
|
blob
|
history
scripts/rename_system.pl
patch
|
blob
|
history
diff --git
a/BuildFarmWeb.pl.skel
b/BuildFarmWeb.pl.skel
index e4d05a59eea73aa54a90a1d15f045cc916ad586f..7fa0735bb5ec5c8b063a98e9694f43eb8edf1d4f 100644
(file)
--- a/
BuildFarmWeb.pl.skel
+++ b/
BuildFarmWeb.pl.skel
@@
-47,10
+47,15
@@
$green_stat=['foo-status-green@somewhere.org'];
$min_script_version = "99.99";
$min_web_script_version = "99.99";
$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';
$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;
1;
diff --git
a/cgi-bin/eximstatus.pl
b/cgi-bin/eximstatus.pl
index e911e6bedc03b471c0fcd0098c4c53bdf84add25..244439ee836c0be0423924d40efe48aaafd16e40 100755
(executable)
--- a/
cgi-bin/eximstatus.pl
+++ b/
cgi-bin/eximstatus.pl
@@
-227,7
+227,7
@@
if ($log_archive)
chomp $githeadref;
close $githead;
}
chomp $githeadref;
close $githead;
}
-
#
unlink $archname;
+ unlink $archname;
}
my $config_flags;
}
my $config_flags;
diff --git
a/scripts/approve_system.pl
b/scripts/approve_system.pl
index 7a36db716759d3e200a5590f7c2c44429120b70b..9a7457d8b633b604be287a8ca336374309b7267c 100755
(executable)
--- a/
scripts/approve_system.pl
+++ b/
scripts/approve_system.pl
@@
-8,6
+8,7
@@
use Data::Dumper;
die "Must pass current sysname and new sysname\n" unless scalar @ARGV == 2;
use vars qw($dbhost $dbname $dbuser $dbpass $dbport
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";
);
require "$ENV{BFConfDir}/BuildFarmWeb.pl";
@@
-22,10
+23,6
@@
my $db = DBI->connect($dsn,$dbuser,$dbpass);
die $DBI::errstr unless $db;
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[
$db->do('SELECT approve(?, ?)', undef, @ARGV);
my $sth = $db->prepare(q[
@@
-35,11
+32,12
@@
my $sth = $db->prepare(q[
]);
$sth->execute();
]);
$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)
{
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};
}
$row->{owner_email}, $row->{operating_system},
$row->{os_version};
}
diff --git
a/scripts/list_buildsystems.pl
b/scripts/list_buildsystems.pl
index 4fa64d1bd3f493e363b3a75418e3286b76a6b083..f64bdbc599e6f45f0dec09f8286def1aedea3493 100755
(executable)
--- a/
scripts/list_buildsystems.pl
+++ b/
scripts/list_buildsystems.pl
@@
-6,6
+6,7
@@
use DBI;
use Data::Dumper;
use vars qw($dbhost $dbname $dbuser $dbpass $dbport
use Data::Dumper;
use vars qw($dbhost $dbname $dbuser $dbpass $dbport
+ $user_list_format
);
require "$ENV{BFConfDir}/BuildFarmWeb.pl";
);
require "$ENV{BFConfDir}/BuildFarmWeb.pl";
@@
-27,11
+28,11
@@
my $sth = $db->prepare(q[
]);
$sth->execute();
]);
$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)
{
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};
}
$row->{owner_email}, $row->{operating_system},
$row->{os_version};
}
diff --git
a/scripts/rename_system.pl
b/scripts/rename_system.pl
index 4a61c770fb058e46ae1fa20c0a158ae2f7dfabb1..cf1dbde55d6c72a912e09597b13b88a7547b91b1 100755
(executable)
--- a/
scripts/rename_system.pl
+++ b/
scripts/rename_system.pl
@@
-8,6
+8,7
@@
use Data::Dumper;
die "Must pass current and new sysnames\n" unless scalar @ARGV == 2;
use vars qw($dbhost $dbname $dbuser $dbpass $dbport
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";
);
require "$ENV{BFConfDir}/BuildFarmWeb.pl";
@@
-36,11
+37,13
@@
my $sth = $db->prepare(q[
]);
$sth->execute();
]);
$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)
{
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};
}
$row->{owner_email}, $row->{operating_system},
$row->{os_version};
}