[patch]: handle all permutations of @FreeBSD.org in MAINTAINER=
Philip M. Gollucci
pgollucci at p6m7g8.com
Mon Jun 1 21:23:08 EDT 2009
The following will allow the webui to catch all permutations of
@FrEeBsD.oRg
Index: webui/core/TinderboxDS.php
===================================================================
RCS file:
/space/cvs/marcuscom-cvs/portstools/tinderbox/webui/core/TinderboxDS.php,v
retrieving revision 1.49
diff -u -r1.49 TinderboxDS.php
--- webui/core/TinderboxDS.php 10 May 2009 19:58:25 -0000 1.49
+++ webui/core/TinderboxDS.php 2 Jun 2009 01:21:14 -0000
@@ -390,8 +390,12 @@
$sortby = 'last_built desc';
}
$query = "SELECT p.port_id,
- p.port_directory,
-
REPLACE(p.port_maintainer, '@FreeBSD.org', '') as port_maintainer,
+ p.port_directory,
+ IF(
+ p.port_maintainer REGEXP '@FreeBSD.org',
+ SUBSTRING_INDEX(p.port_maintainer, '@', 1),
+ p.port_maintainer
+ ) as port_maintainer,
p.port_name,
p.port_comment,
bp.last_built,
More information about the tinderbox-list
mailing list