Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Unified Diff: sdk/lib/_internal/pub/lib/src/package.dart

Issue 1142693002: Fix a crash in pub's version solver. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)";
}
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698