From 9647798988ab709f84cb0de8f5c94d0fa6f525ba Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 10 Jun 2010 18:56:58 +0000 Subject: [PATCH] small fixes --- doc/rpm-build/checkout-build-archives.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/rpm-build/checkout-build-archives.php b/doc/rpm-build/checkout-build-archives.php index 055b6450b0..df91de6c41 100755 --- a/doc/rpm-build/checkout-build-archives.php +++ b/doc/rpm-build/checkout-build-archives.php @@ -39,7 +39,7 @@ $config = array( 'obs' => false, 'changelog' => false, // eg. '* 1. Zeile\n* 2. Zeile' for debian.changes 'changelog_packager' => 'Ralf Becker ', - 'svntag' => 'Stylite-EPL-$version.$packaging', // eg. '$version.$packaging' + 'svntag' => 'tags/Stylite-EPL-$version.$packaging', // eg. '$version.$packaging' 'skip' => array(), 'run' => array('svntag','checkout','copy','virusscan','create','sign') ); @@ -77,7 +77,7 @@ while(($arg = array_shift($argv))) } else { - $config[$name] = array_unique(preg_split('/[ ,]+/',$value)); + $config[$name] = array_unique(split('[ ,]+',$value)); } break; @@ -150,7 +150,7 @@ function do_obs() ++$n; } // updating dsc, spec and changelog files - if (substr($path,-4) == '.dsc' || substr($path,-5) == '.spec' || + if (substr($path,-4) == '.dsc' || substr($path,-5) == '.spec' || !empty($config['changelog']) && basename($path) == 'debian.changes') { $content = $content_was = file_get_contents($path);