mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 15:38:27 +01:00
"only update same major version"
This commit is contained in:
parent
9f7b863589
commit
4c9e6946c1
@ -119,7 +119,7 @@ function do_obs()
|
|||||||
foreach(new RecursiveIteratorIterator(new RecursiveDirectoryIterator($config['obs'])) as $path)
|
foreach(new RecursiveIteratorIterator(new RecursiveDirectoryIterator($config['obs'])) as $path)
|
||||||
{
|
{
|
||||||
if (basename(dirname($path)) != '.osc' &&
|
if (basename(dirname($path)) != '.osc' &&
|
||||||
preg_match('/\/('.preg_quote($config['packagename']).'[a-z-]*)-[0-9.-]+(\.tar\.(gz|bz2))$/',$path,$matches) &&
|
preg_match('/\/('.preg_quote($config['packagename']).'[a-z-]*)-'.preg_quote($config['version']).'\.[0-9]+(\.tar\.(gz|bz2))$/',$path,$matches) &&
|
||||||
file_exists($new_name=$config['sourcedir'].'/'.$matches[1].'-'.$config['version'].'.'.$config['packaging'].$matches[2]))
|
file_exists($new_name=$config['sourcedir'].'/'.$matches[1].'-'.$config['version'].'.'.$config['packaging'].$matches[2]))
|
||||||
{
|
{
|
||||||
if (basename($path) != basename($new_name))
|
if (basename($path) != basename($new_name))
|
||||||
|
Loading…
Reference in New Issue
Block a user