From e287a890ad52558e45186187ab1d1b17abdaf5f8 Mon Sep 17 00:00:00 2001 From: abbodi1406 Date: Fri, 29 Jan 2021 19:52:19 +0300 Subject: [PATCH] Update fetchupd.php Fix improper exclusion for Diffs files, those should be excluded in get.php only --- fetchupd.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fetchupd.php b/fetchupd.php index 5fc5978..6fcbadc 100644 --- a/fetchupd.php +++ b/fetchupd.php @@ -295,14 +295,13 @@ function parseFetchUpdate($updateInfo, $out, $arch, $ring, $flight, $build, $sku $shaArray = array(); foreach($fileList[0] as $val) { - preg_match('/FileName=".*?"/', $val, $name); - $name = preg_replace('/FileName="|"$/', '', $name[0]); - if(preg_match('/.*_Diffs_.*|.*_Forward_CompDB_.*|\.cbsu\.cab$/i', $name)) continue; - preg_match('/Digest=".*?"/', $val, $sha1); $sha1 = preg_replace('/Digest="|"$/', '', $sha1[0]); $sha1 = bin2hex(base64_decode($sha1)); + preg_match('/FileName=".*?"/', $val, $name); + $name = preg_replace('/FileName="|"$/', '', $name[0]); + preg_match('/Size=".*?"/', $val, $size); $size = preg_replace('/Size="|"$/', '', $size[0]);