diff --git a/doc/rpm-build/checkout-build-archives.php b/doc/rpm-build/checkout-build-archives.php index 02930e576a..f9fc191837 100755 --- a/doc/rpm-build/checkout-build-archives.php +++ b/doc/rpm-build/checkout-build-archives.php @@ -91,7 +91,7 @@ while(($arg = array_shift($argv))) $config[$name] = $value ? $value : true; if (!in_array('editsvnchangelog',$config['run'])) { - array_unshift($config['run'],'editsvnchanglog'); + array_unshift($config['run'],'editsvnchangelog'); } break; @@ -600,11 +600,6 @@ function get_modules_per_repro() $translate = array(); foreach($config as $name => $value) $translate['$'.$name] = $value; - if (strpos($config['svntag'],'$') !== false) // allow to use config vars like $version in tag - { - $config['svntag'] = strtr($config['svntag'],$translate); - } - // process alias/externals $svnbranch = $config['svnbase'].'/'.$config['svnbranch']; $url = $svnbranch.'/'.$config['svnalias']; @@ -647,6 +642,13 @@ function do_svntag() { global $config,$svn,$verbose; + $translate = array(); + foreach($config as $name => $value) $translate['$'.$name] = $value; + + if (strpos($config['svntag'],'$') !== false) // allow to use config vars like $version in tag + { + $config['svntag'] = strtr($config['svntag'],$translate); + } echo "Creating SVN tag $config[svntag]\n"; if (!isset($config['modules'])) {