forked from uup-dump/api
Remove unused code
This commit is contained in:
parent
73f8fad26c
commit
2f2e532dae
@ -83,20 +83,18 @@ function uupFetchUpd($arch = 'amd64', $ring = 'WIF', $flight = 'Active', $build
|
|||||||
$updateFiles = preg_grep('/<Files>.*<\/Files>/', $updateMeta);
|
$updateFiles = preg_grep('/<Files>.*<\/Files>/', $updateMeta);
|
||||||
sort($updateFiles);
|
sort($updateFiles);
|
||||||
|
|
||||||
$updateTitle = preg_grep('/<Title>.*<\/Title>/', $updateMeta);
|
|
||||||
sort($updateTitle);
|
|
||||||
|
|
||||||
preg_match('/<Files>.*<\/Files>/', $updateFiles[0], $fileList);
|
preg_match('/<Files>.*<\/Files>/', $updateFiles[0], $fileList);
|
||||||
if(empty($fileList[0])) {
|
if(empty($fileList[0])) {
|
||||||
consoleLogger('An error has occurred');
|
consoleLogger('An error has occurred');
|
||||||
return array('error' => 'EMPTY_FILELIST');
|
return array('error' => 'EMPTY_FILELIST');
|
||||||
}
|
}
|
||||||
|
|
||||||
preg_match('/<FlightMetadata>.*?<Relationships>/', $out, $out2);
|
|
||||||
|
|
||||||
preg_match('/Version\=".*?"/', $updateInfo[0], $foundBuild);
|
preg_match('/Version\=".*?"/', $updateInfo[0], $foundBuild);
|
||||||
$foundBuild = preg_replace('/Version="10\.0\.|"/', '', $foundBuild[0]);
|
$foundBuild = preg_replace('/Version="10\.0\.|"/', '', $foundBuild[0]);
|
||||||
|
|
||||||
|
$updateTitle = preg_grep('/<Title>.*<\/Title>/', $updateMeta);
|
||||||
|
sort($updateTitle);
|
||||||
|
|
||||||
preg_match('/<Title>.*?<\/Title>/i', $updateTitle[0], $updateTitle);
|
preg_match('/<Title>.*?<\/Title>/i', $updateTitle[0], $updateTitle);
|
||||||
$updateTitle = preg_replace('/<Title>|<\/Title>/i', '', $updateTitle);
|
$updateTitle = preg_replace('/<Title>|<\/Title>/i', '', $updateTitle);
|
||||||
sort($updateTitle);
|
sort($updateTitle);
|
||||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function uupApiVersion() {
|
function uupApiVersion() {
|
||||||
return '1.2.0';
|
return '1.2.1';
|
||||||
}
|
}
|
||||||
|
|
||||||
function uupApiPrintBrand() {
|
function uupApiPrintBrand() {
|
||||||
|
Loading…
Reference in New Issue
Block a user