Don't allow duplicate packages to be displayed. Also only print header
once
This commit is contained in:
parent
86bb11f41c
commit
77acf0baad
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue