From 3b21829e13445962401cfbea637305106eaf6ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Thu, 25 Jun 2015 10:09:05 +0200 Subject: [PATCH] "dub remove" shall only remove managed packages. Fixes #596. --- source/dub/dub.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dub/dub.d b/source/dub/dub.d index 400318e4f..fba29ee5e 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -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.