From 4c9e6946c17ae91923236c7fcacf10b913d8cb87 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 5 Mar 2010 16:22:37 +0000 Subject: [PATCH] "only update same major version" --- doc/rpm-build/checkout-build-archives.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/rpm-build/checkout-build-archives.php b/doc/rpm-build/checkout-build-archives.php index 929632d696..8c26b6c6c0 100755 --- a/doc/rpm-build/checkout-build-archives.php +++ b/doc/rpm-build/checkout-build-archives.php @@ -119,7 +119,7 @@ function do_obs() foreach(new RecursiveIteratorIterator(new RecursiveDirectoryIterator($config['obs'])) as $path) { 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])) { if (basename($path) != basename($new_name))