| Index: lib/src/command/list_package_dirs.dart
|
| diff --git a/lib/src/command/list_package_dirs.dart b/lib/src/command/list_package_dirs.dart
|
| index 34d695273701d45ac1338937ec0d0b844c2216aa..36e45269fc4d23067bec37a84df06ebc2901dd57 100644
|
| --- a/lib/src/command/list_package_dirs.dart
|
| +++ b/lib/src/command/list_package_dirs.dart
|
| @@ -7,6 +7,7 @@ library pub.command.list_package_dirs;
|
| import 'package:path/path.dart' as p;
|
|
|
| import '../command.dart';
|
| +import '../io.dart';
|
| import '../log.dart' as log;
|
| import '../utils.dart';
|
|
|
| @@ -27,7 +28,7 @@ class ListPackageDirsCommand extends PubCommand {
|
| void run() {
|
| log.json.enabled = true;
|
|
|
| - if (!entrypoint.lockFileExists) {
|
| + if (!fileExists(entrypoint.lockFilePath)) {
|
| dataError('Package "myapp" has no lockfile. Please run "pub get" first.');
|
| }
|
|
|
|
|