Don't allow duplicate packages to be displayed. Also only print header

once
This commit is contained in:
Jacob 2023-09-16 15:35:01 +02:00
parent 86bb11f41c
commit 77acf0baad

View file

@ -200,6 +200,10 @@ function main() {
$pkgSource = $packageSources[$i];
$pkgLicense = $packageLicenses[$i];
if ($pkgName == $packageNames[$i+1]) {
continue;
}
printHead($self, "speedie-aur", "Viewing package '$pkgName'", "$pkgName from the speedie-aur Arch Linux repository.");
print "\t\t<h1>$pkgName</h1>\n";
@ -271,6 +275,8 @@ function main() {
print "\t\t\t\t</tr>\n";
print "\t\t\t</table>\n";
break;
}
}