Skip to content

Commit

Permalink
"dub remove" shall only remove managed packages. Fixes #596.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Jun 25, 2015
1 parent eb4328e commit 3b21829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/dub/dub.d
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ class Dub {

// Retrieve packages to be removed.
foreach(pack; m_packageManager.getPackageIterator(package_id))
if( wildcardOrEmpty || pack.vers == version_ )
if ((wildcardOrEmpty || pack.vers == version_) && m_packageManager.isManagedPackage(pack))
packages ~= pack;

// Check validity of packages to be removed.
Expand Down

0 comments on commit 3b21829

Please sign in to comment.