Merge pull request #2405 from discordier/fix-upgrade-cache
Fix cache directory upgrading - do not try to (re)move the active cache dir.pull/2415/head
commit
034ac85465
|
@ -118,10 +118,12 @@ class Factory
|
||||||
@rename($child, $dir.'/'.basename($child));
|
@rename($child, $dir.'/'.basename($child));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ($config->get('cache-dir') != $oldPath) {
|
||||||
@rmdir($oldPath);
|
@rmdir($oldPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $config;
|
return $config;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue