Commit 91f85806 authored by jlopez's avatar jlopez
Browse files

fix conflits

parents 0bbb77d4 738e65f0
...@@ -111,13 +111,20 @@ function findAlpinePackages($os_name, $version_num, $version_name, $keyword, $li ...@@ -111,13 +111,20 @@ function findAlpinePackages($os_name, $version_num, $version_name, $keyword, $li
$index = 0; $index = 0;
for ($i = 1; $i <= $size; $i++) { for ($i = 1; $i <= $size; $i++) {
$name = cleanValue($tr[$i]->childNodes[1]->nodeValue);
$version = $tr[$i]->childNodes[3]->nodeValue; $check = $tr[$i]->nodeValue;
if($check == null) {
continue;
}
$name = cleanValue($tr[$i]->getElementsByTagName('td')[0]->nodeValue);
$version = $tr[$i]->getElementsByTagName('td')[1]->nodeValue;
if($name != null && $name != "") { if($name != null && $name != "") {
$description = ""; $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; $other = $os_name.":".$version_num;
$package = new Package($name, $version, $description, $link, $other); $package = new Package($name, $version, $description, $link, $other);
$results[] = $package; $results[] = $package;
......
Supports Markdown
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