index : website | |
Archlinux32 website - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | buildmaster/build-list-links.php | 28 |
diff --git a/buildmaster/build-list-links.php b/buildmaster/build-list-links.php index e3d2779..1c64489 100644 --- a/buildmaster/build-list-links.php +++ b/buildmaster/build-list-links.php @@ -5,7 +5,7 @@ require_once BASE . "/lib/mysql.php"; $edges = ""; $knots = ""; -if (!isset($_GET["raw"])) +if (!array_key_exists("raw", $_GET)) $limit = " LIMIT 150"; $query = @@ -16,7 +16,7 @@ $query = "UNIQUE KEY `id` (`id`), " . "KEY `group` (`group`)" . ")"; -if (isset($_GET["raw"])) +if (array_key_exists("raw", $_GET)) print $query . ";\n"; mysql_run_query($query); @@ -31,7 +31,7 @@ $query = mysql_join_binary_packages_build_assignments() . " WHERE `repositories`.`name`=\"build-list\"" . $limit; -if (isset($_GET["raw"])) +if (array_key_exists("raw", $_GET)) print $query . ";\n"; mysql_run_query($query); @@ -42,7 +42,7 @@ $query = "`color` VARCHAR(7), " . "UNIQUE KEY `id` (`id`)" . ")"; -if (isset($_GET["raw"])) +if (array_key_exists("raw", $_GET)) print $query . ";\n"; mysql_run_query($query); @@ -50,7 +50,7 @@ $query = "INSERT IGNORE INTO `ba_copy` (`id`,`color`)" . " SELECT `ba`.`id`,`ba`.`color`" . " FROM `ba`"; -if (isset($_GET["raw"])) +if (array_key_exists("raw", $_GET)) print $query . ";\n"; mysql_run_query($query); @@ -61,7 +61,7 @@ $query = "`type` MEDIUMINT, " . "UNIQUE KEY `content` (`from`,`to`,`type`)" . ")"; -if (isset($_GET["raw"])) +if (array_key_exists("raw", $_GET)) print $query . ";\n"; mysql_run_query($query); @@ -77,7 +77,7 @@ $query = mysql_join_install_target_providers_binary_packages('','i_bp') . " JOIN `ba_copy` ON `i_bp`.`build_assignment`=`ba_copy`.`id`" . " WHERE `d_bp`.`build_assignment`!=`i_bp`.`build_assignment`"; -if (isset($_GET["raw"])) +if (array_key_exists("raw", $_GET)) print $query . ";\n"; mysql_run_query($query); @@ -88,14 +88,14 @@ $query = "`type` MEDIUMINT, " . "UNIQUE KEY `content` (`from`,`to`,`type`)" . ")"; -if (isset($_GET["raw"])) +if (array_key_exists("raw", $_GET)) print $query . ";\n"; mysql_run_query($query); $query = "INSERT IGNORE INTO `ba_links_copy` (`from`,`to`,`type`)" . " SELECT `ba_links`.`from`,`ba_links`.`to`,`ba_links`.`type` FROM `ba_links`"; -if (isset($_GET["raw"])) +if (array_key_exists("raw", $_GET)) print $query . ";\n"; mysql_run_query($query); @@ -119,7 +119,7 @@ $query = " GROUP BY `ba_copy`.`id`" . ") AS `grouped_ba` ON `grouped_ba`.`id`=`ba`.`id`" . " SET `ba`.`group`=`grouped_ba`.`hash`"; -if (isset($_GET["raw"])) +if (array_key_exists("raw", $_GET)) print $query . ";\n"; mysql_run_query($query); @@ -127,7 +127,7 @@ $query = "UPDATE `ba_copy`" . " JOIN `ba` ON `ba`.`id`=`ba_copy`.`id`" . " SET `ba_copy`.`group`=`ba`.`group`"; -if (isset($_GET["raw"])) +if (array_key_exists("raw", $_GET)) print $query . ";\n"; mysql_run_query($query); @@ -143,7 +143,7 @@ $query = mysql_join_build_assignments_package_sources() . mysql_join_build_assignments_architectures() . " GROUP BY `ba`.`group`"; -if (isset($_GET["raw"])) +if (array_key_exists("raw", $_GET)) print $query . ";\n"; $result = mysql_run_query($query); @@ -167,7 +167,7 @@ $query = " JOIN `ba` ON `ba_links`.`from`=`ba`.`id`" . " JOIN `ba_copy` ON `ba_links`.`to`=`ba_copy`.`id`" . " GROUP BY CONCAT(`ba`.`group`,\"-\",`ba_copy`.`group`)"; -if (isset($_GET["raw"])) +if (array_key_exists("raw", $_GET)) print $query . ";\n"; $result = mysql_run_query($query); @@ -200,7 +200,7 @@ while ($row = $result->fetch_assoc()) { "\"];\n"; } -if (isset($_GET["raw"])) { +if (array_key_exists("raw", $_GET)) { print "digraph dependencies {\n" . "rankdir=LR;\n" . |