Skip to content

Commit

Permalink
Item11267: Don't use "HEAD" to detect pseudo install.
Browse files Browse the repository at this point in the history
A real, non-pseudo-installed extension will crash configure if a perl
version object is compared to an alpha string.

9999.99_999 will be used to indicate a pseudo-installed release.

git-svn-id: http://svn.foswiki.org/trunk@15909 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Nov 5, 2012
1 parent 666dccf commit c162ef2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Configure/Dependency.pm
Expand Up @@ -220,7 +220,7 @@ sub studyInstallation {
if ( -l "$dir/$path" ) {

# Assume pseudo-installed
$this->{installedVersion} = 'HEAD';
$this->{installedVersion} = '9999.99_999';
}
last;
}
Expand Down
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Configure/UIs/EXTENSIONS.pm
Expand Up @@ -339,7 +339,7 @@ sub _rawExtensionRows {
if ( $ext->{installedRelease} ) {

# The module is installed; check the version
if ( $ext->{installedVersion} eq 'HEAD' ) {
if ( $ext->{installedVersion} eq '9999.99_999' ) {

# pseudo-installed
$install = 'pseudo-installed';
Expand Down

0 comments on commit c162ef2

Please sign in to comment.