Commit 738e65f0 authored by root's avatar root
Browse files

Fix alpine getPackages

parent ad999455
......@@ -112,14 +112,19 @@ function findAlpinePackages($os_name, $version_num, $version_name, $keyword, $li
for ($i = 1; $i <= $size; $i++) {
$name = cleanValue($tr[$i]->childNodes[1]->nodeValue);
$check = $tr[$i]->nodeValue;
if($check == null) {
continue;
}
$version = $tr[$i]->childNodes[3]->nodeValue;
$name = cleanValue($tr[$i]->getElementsByTagName('td')[0]->nodeValue);
$version = $tr[$i]->getElementsByTagName('td')[1]->nodeValue;
if($name != null && $name != "") {
$description = "";
$link = $basic_url."/v".$version_num."/main/x86_64/".$name;
$link = "https://pkgs.alpinelinux.org/package/v".$version_num."/main/x86_64/".$name;
$other = $os_name.":".$version_num;
$package = new Package($name, $version, $description, $link, $other);
$results[] = $package;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment