Skip to content

Commit

Permalink
Let Package.hasDependency return true if no configuration is specifie…
Browse files Browse the repository at this point in the history
…d and _any_ configuration has the dependency. Fixes #137.
  • Loading branch information
s-ludwig committed Oct 21, 2013
1 parent 9700a53 commit 4be851c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/dub/package_.d
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ class Package {
const {
if (depname in m_info.buildSettings.dependencies) return true;
foreach (ref c; m_info.configurations)
if (c.name == config && depname in c.buildSettings.dependencies)
if ((config.empty || c.name == config) && depname in c.buildSettings.dependencies)
return true;
return false;
}
Expand Down

0 comments on commit 4be851c

Please sign in to comment.