num_rows > 0) {
$count = 0;
while ($row = $result->fetch_assoc()) {
if ($row['exists_upstream'] == 1)
$color = "#FF0000";
else
$color = "#00FF00";
$rows[$count] =
"" .
$row["repo"] . "/" .
$row["pkgname"] . "-";
if ($row["epoch"] != "0")
$rows[$count] =
$rows[$count] .
$row["epoch"] . ":";
$rows[$count] =
$rows[$count] .
$row["pkgver"] . "-" .
$row["pkgrel"] . "." .
$row["sub_pkgrel"] . "-" .
$row["arch"] . ".pkg.tar.xz";
$count++;
}
sort($rows);
foreach ($rows as $row) {
print $row."
\n";
}
} else {
print "No packages are to be deleted.\n";
}
?>