Skip to content

Commit

Permalink
(chocolateyGH-1041) Fix: Skip loading synced dlls as extensions
Browse files Browse the repository at this point in the history
When Chocolatey loads the extensions folders, sometimes it is getting
caught by the synced folder that may contain DLLs. In newer licensed
versions, this synced folder is kept in a better location, but those
older versions need a way of ensuring that those DLLs are not attempted
to be loaded up.
  • Loading branch information
ferventcoder committed Jan 3, 2017
1 parent 7515b98 commit 3a1c58f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/chocolatey.resources/helpers/chocolateyInstaller.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ if (Test-Path($extensionsPath)) {
Get-ChildItem $extensionsPath -recurse -filter "*.psm1" | Select -ExpandProperty FullName | % { Write-Debug "Importing `'$_`'"; Import-Module $_; }
Get-ChildItem $extensionsPath -recurse -filter "*.dll" | Select -ExpandProperty FullName | % {
$path = $_;
if ($path.Contains("extensions\chocolatey\lib-synced") { continue }

try {
Write-Debug "Importing '$path'";
Write-Debug "Loading '$([System.IO.Path]::GetFileNameWithoutExtension($path))' extension.";
Expand Down

0 comments on commit 3a1c58f

Please sign in to comment.