Index: utils/pub/version_solver.dart |
diff --git a/utils/pub/version_solver.dart b/utils/pub/version_solver.dart |
index e0cf2be80a586e80b9b6a3d99f41c5ad6ae7ff5f..1277c4e43d4864d80191c452cf70e3bce0868cbd 100644 |
--- a/utils/pub/version_solver.dart |
+++ b/utils/pub/version_solver.dart |
@@ -40,6 +40,7 @@ library version_solver; |
import 'dart:json'; |
import 'dart:math'; |
import 'lock_file.dart'; |
+import 'log.dart' as log; |
import 'package.dart'; |
import 'pubspec.dart'; |
import 'root_source.dart'; |
@@ -59,7 +60,7 @@ import 'version.dart'; |
*/ |
Future<List<PackageId>> resolveVersions(SourceRegistry sources, Package root, |
LockFile lockFile) { |
- print('Resolving dependencies...'); |
+ log.message('Resolving dependencies...'); |
return new VersionSolver(sources, root, lockFile).solve(); |
} |
@@ -266,6 +267,8 @@ class ChangeVersion implements WorkItem { |
} |
Future process(VersionSolver solver) { |
+ log.fine("Changing $package to version $version."); |
+ |
var dependency = solver.getDependency(package); |
var oldVersion = dependency.version; |
solver.setVersion(package, version); |
@@ -417,6 +420,8 @@ class AddConstraint extends ChangeConstraint { |
AddConstraint(this.depender, this.ref); |
Future process(VersionSolver solver) { |
+ log.fine("Adding $depender's constraint $ref."); |
+ |
var dependency = solver.getDependency(ref.name); |
var oldDependency = dependency.clone(); |
dependency.placeConstraint(depender, ref); |
@@ -448,6 +453,8 @@ class RemoveConstraint extends ChangeConstraint { |
RemoveConstraint(this.depender, this.dependent); |
Future process(VersionSolver solver) { |
+ log.fine("Removing $depender's constraint on $dependent."); |
nweiz
2012/12/05 23:56:54
Log what the removed constraint was.
Bob Nystrom
2012/12/06 01:33:26
Done.
|
+ |
var dependency = solver.getDependency(dependent); |
var oldDependency = dependency.clone(); |
_removed = dependency.removeConstraint(depender); |
@@ -467,6 +474,8 @@ class UnlockPackage implements WorkItem { |
UnlockPackage(this.package); |
Future process(VersionSolver solver) { |
+ log.fine("Unlocking ${package.name}."); |
+ |
solver.lockFile.packages.remove(package.name); |
return solver.getBestVersion(package).transform((best) { |
if (best == null) return null; |