Index: cvs_deploy.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/cvs_deploy/cvs_deploy.module,v retrieving revision 1.9.2.7 diff -u -r1.9.2.7 cvs_deploy.module --- cvs_deploy.module 23 Jan 2008 21:00:28 -0000 1.9.2.7 +++ cvs_deploy.module 3 Aug 2008 02:10:03 -0000 @@ -23,11 +23,17 @@ $version = 'HEAD'; } // See if it's a full, official release from a tag: - else if (preg_match('@^DRUPAL-(\d+)--(\d+)-(\d+)(-.+)?@', $tag, $match)) { + else if (preg_match('@^DRUPAL-(\d+)--(\d+)-(\d+)(?:-(.+))?@', $tag, $match)) { $version = $match[1] .'.x-'. $match[2] .'.'. $match[3]; if (isset($match[4])) { // This version's tag has 'extra', so clean that up. - $version .= '-'. preg_replace('/[_-]/', '', strtolower($match[4])); + if (preg_match('@^\d+$@', $match[4])) { + // This 'extra' is a number, so use '.' rather than '-'. + $version .= '.'. $match[4]; + } + else { + $version .= '-'. preg_replace('/[_-]/', '', strtolower($match[4])); + } } } // If not, see if it's from a branch (like a development snapshot).