Index: utils/pub/package.dart |
diff --git a/utils/pub/package.dart b/utils/pub/package.dart |
index 8d84546ec8f676209b7164ce815c5293b948ff88..b8ee759211036ee26143f952aa0dab7e395bfc68 100644 |
--- a/utils/pub/package.dart |
+++ b/utils/pub/package.dart |
@@ -137,7 +137,10 @@ class PackageId implements Comparable { |
other.version == version; |
} |
- String toString() => "$name $version from ${source.name}"; |
+ String toString() { |
+ if (source.isDefault) return "$name $version"; |
+ return "$name $version from $source"; |
+ } |
int compareTo(Comparable other) { |
if (other is! PackageId) throw new ArgumentError(other); |