Index: sdk/lib/_internal/pub/lib/src/package.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/package.dart b/sdk/lib/_internal/pub/lib/src/package.dart |
index d8dcc94cfd1ab6793884cb5e1fd68845ff6a04f1..fa111a4bc8a4e150bd7815db2a245a58959aac11 100644 |
--- a/sdk/lib/_internal/pub/lib/src/package.dart |
+++ b/sdk/lib/_internal/pub/lib/src/package.dart |
@@ -399,8 +399,13 @@ class PackageDep extends _PackageName { |
PackageDep(String name, String source, this.constraint, description) |
: super(name, source, description); |
+ PackageDep.magic(String name) |
+ : super.magic(name), |
+ constraint = Version.none; |
+ |
String toString() { |
if (isRoot) return "$name $constraint (root)"; |
+ if (isMagic) return name; |
return "$name $constraint from $source ($description)"; |
} |