if ($completePatch->hasDetailsUrl()) { $update->setDetails($completePatch->detailsUrl); } // If we found an update type, pass it along. if ($completePatch->hasUpdateType()) { $update->setType($completePatch->updateType); } // If we have a license URL, pass it along. if ($completePatch->hasLicenseUrl()) { $update->setLicense($completePatch->licenseUrl); } } // Instantiate our partial patch. $partialPatch = new Patch($productBranchVersions, $nightlyChannels, 'partial'); // If our partial patch exists and is valid, set the patch line. if ($partialPatch->findPatch($clean['product'], $clean['platform'], $clean['locale'], $clean['version'], $clean['build'], $clean['channel']) && $partialPatch->isPatch() && $partialPatch->isOneStepFromLatest($completePatch->build)) { $xml->setPatchLine($partialPatch); } // If we have valid patchLine(s), set up our output. if ($xml->hasPatchLine()) { $xml->startUpdate($update); $xml->drawPatchLines(); $xml->endUpdate(); } break; /* * This is for the first revision of the URI schema. * /update2/0/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/update.xml */ /* * This is for the first revision of the URI schema.