From 9374219cc93f5bb0279a184f4944c83b63cdeba1 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 23 Nov 2018 10:24:08 +0100 Subject: buildmaster/mysql-issues.php: add output buffering --- buildmaster/mysql-issues.php | 70 +++++++++++++++++++++----------------------- 1 file changed, 34 insertions(+), 36 deletions(-) diff --git a/buildmaster/mysql-issues.php b/buildmaster/mysql-issues.php index 19ef55d..1ca07bc 100644 --- a/buildmaster/mysql-issues.php +++ b/buildmaster/mysql-issues.php @@ -10,6 +10,19 @@ require_once BASE . "/lib/mysql.php"; if (isset($_GET["ignore-i486"])) $ignore .= " AND `r_a`.`name` != \"i486\""; + ob_start(); + +?> + + + More and less critical issues with the database + + + + + Start page
+ fetch_assoc() ) - $serious_issues[] = $row; + print " Found " . count( $result -> num_rows ) . " serious issues.
\n"; + + while ( $row = $result -> fetch_assoc() ) { + if ($row["is_to_be_deleted"]==1) + print " (marked as to-be-deleted) "; + else + print " "; + print $row["pkgfile"] . " depends on " . $row["install_target"] . " which is not provided by any package"; + if (isset($row["subst_repository"])) + print " - but can be replaced by the one in " . $row["subst_repository"]; + elseif (isset($row["subst_buildlist"])) + print " - but is already rescheduled"; + print ".
"; + print "
\n"; + unset($row); + } $result = mysql_run_query( "SELECT CONCAT(" . @@ -132,48 +158,20 @@ require_once BASE . "/lib/mysql.php"; " ORDER BY `binary_packages_in_repositories`.`is_to_be_deleted`,`binary_packages`.`pkgname`,`install_targets`.`name`" ); - $stability_issues = array(); - while ( $row = $result -> fetch_assoc() ) - $stability_issues[] = $row; - -?> - - - More and less critical issues with the database - - - - - Start page
-\n"; - - foreach ( $serious_issues as $row ) { - if ($row["is_to_be_deleted"]==1) - print " (marked as to-be-deleted) "; - else - print " "; - print $row["pkgfile"] . " depends on " . $row["install_target"] . " which is not provided by any package"; - if (isset($row["subst_repository"])) - print " - but can be replaced by the one in " . $row["subst_repository"]; - elseif (isset($row["subst_buildlist"])) - print " - but is already rescheduled"; - print ".
"; - print "
\n"; - } - - print " Found " . count( $stability_issues ) . " stability issues.
\n"; + print " Found " . count( $result -> num_rows ) . " stability issues.
\n"; - foreach ( $stability_issues as $row ) { + while ( $row = $result -> fetch_assoc() ) { if ($row["is_to_be_deleted"]==1) print " (marked as to-be-deleted) "; else print " "; print $row["pkgfile"] . " depends on " . $row["install_target"] . " which is not provided by any package installable from enabled " . $row["stability"] . " repositories.
"; print "
\n"; + unset($row); } + ob_end_flush(); + ?> -- cgit v1.2.3-70-g09d2