Skip to content

Commit

Permalink
Item11289: pseudo-install -u missing = git clone
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@13209 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Nov 25, 2011
1 parent 3556929 commit 9e5a13f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/pseudo-install.pl
Expand Up @@ -382,7 +382,7 @@ sub installModule {
my ($module) = @_;

# Assume that only URLs will have '.' or '/', never module names
if ( $module =~ /[\/\.]/ ) {
if ( $installing and $module =~ /[\/\.]/ ) {
cloneModuleByURL( $config{clone_dir}, $module );
$module = urlToModuleName($module);
}
Expand Down Expand Up @@ -416,7 +416,7 @@ sub installModuleByName {
$moduleDir = findModuleDir($module);
}

if ( not defined $moduleDir ) {
if ( $installing and not defined $moduleDir ) {
$moduleDir = cloneModuleByName($module);
}

Expand Down

0 comments on commit 9e5a13f

Please sign in to comment.