| Index: sdk/lib/_internal/pub/lib/src/command/downgrade.dart | 
| diff --git a/sdk/lib/_internal/pub/lib/src/command/downgrade.dart b/sdk/lib/_internal/pub/lib/src/command/downgrade.dart | 
| index 94e8fc6c056d3442c6937f47857e9d648ae559a8..d3313a49b104dfedef48800d70473cad762811f7 100644 | 
| --- a/sdk/lib/_internal/pub/lib/src/command/downgrade.dart | 
| +++ b/sdk/lib/_internal/pub/lib/src/command/downgrade.dart | 
| @@ -28,14 +28,13 @@ class DowngradeCommand extends PubCommand { | 
| help: "Report what dependencies would change but don't change any."); | 
| } | 
|  | 
| -  Future onRun() { | 
| +  Future onRun() async { | 
| var dryRun = commandOptions['dry-run']; | 
| -    return entrypoint.acquireDependencies(SolveType.DOWNGRADE, | 
| -        useLatest: commandOptions.rest, dryRun: dryRun).then((_) { | 
| -      if (isOffline) { | 
| -        log.warning("Warning: Downgrading when offline may not update you to " | 
| -            "the oldest versions of your dependencies."); | 
| -      } | 
| -    }); | 
| +    await entrypoint.acquireDependencies(SolveType.DOWNGRADE, | 
| +        useLatest: commandOptions.rest, dryRun: dryRun); | 
| +    if (isOffline) { | 
| +      log.warning("Warning: Downgrading when offline may not update you to " | 
| +          "the oldest versions of your dependencies."); | 
| +    } | 
| } | 
| } | 
|  |