diff --git a/pandora_console/godmode/um_client/lib/UpdateManager/Client.php b/pandora_console/godmode/um_client/lib/UpdateManager/Client.php index 27425f535f..bb62d63959 100644 --- a/pandora_console/godmode/um_client/lib/UpdateManager/Client.php +++ b/pandora_console/godmode/um_client/lib/UpdateManager/Client.php @@ -835,7 +835,7 @@ class Client function ($carry, $item) { $matches = []; if (is_array($item) !== true - && preg_match('/(\d+)\.tar/', $item, $matches) > 0 + && preg_match('/([\d\.\d]+?)\.tar/', $item, $matches) > 0 ) { $carry[] = [ 'version' => $matches[1], diff --git a/pandora_console/godmode/um_client/lib/UpdateManager/RepoDisk.php b/pandora_console/godmode/um_client/lib/UpdateManager/RepoDisk.php index bb6368a823..426cf4be4e 100644 --- a/pandora_console/godmode/um_client/lib/UpdateManager/RepoDisk.php +++ b/pandora_console/godmode/um_client/lib/UpdateManager/RepoDisk.php @@ -75,8 +75,8 @@ class RepoDisk extends Repo $this->files = []; while ($file_name = readdir($dh)) { // Files must contain a version number. - if (preg_match('/(\d+)\_x86_64.'.$this->extension.'$/', $file_name, $utimestamp) === 1 - || preg_match('/(\d+)\.'.$this->extension.'$/', $file_name, $utimestamp) === 1 + if (preg_match('/([\d\.]+?)\_x86_64.'.$this->extension.'$/', $file_name, $utimestamp) === 1 + || preg_match('/([\d\.]+?)\.'.$this->extension.'$/', $file_name, $utimestamp) === 1 ) { // Add the file to the repository. $this->files[$utimestamp[1]] = $file_name;