Index: utils/pub/package.dart |
diff --git a/utils/pub/package.dart b/utils/pub/package.dart |
index 5485b65e78b33eb9228f5343a6183b93f4d861d9..dd988cb61efd79bfb03a3b15356adb879ccc1ca0 100644 |
--- a/utils/pub/package.dart |
+++ b/utils/pub/package.dart |
@@ -5,6 +5,9 @@ |
library package; |
import 'dart:async'; |
+ |
+import '../../pkg/path/lib/path.dart' as path; |
+ |
import 'io.dart'; |
import 'pubspec.dart'; |
import 'source.dart'; |
@@ -21,7 +24,7 @@ class Package { |
/// The name of the package. |
String get name { |
if (pubspec.name != null) return pubspec.name; |
- if (dir != null) return basename(dir); |
+ if (dir != null) return path.basename(dir); |
return null; |
} |