Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/fuchsia_ctl/bin/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,12 @@ Future<OperationResult> pushPackages(

stdout.writeln('Untaring $repoArchive to ${repo.path}');
repo.createSync(recursive: true);
await tar.untar(repoArchive, repo.path);
final OperationResult result = await tar.untar(repoArchive, repo.path);
if (!result.success) {
stdout.writeln(
'Error untarring $repoArchive \nstdout: ${result.info} \nstderr: ${result.error}');
exit(-1);
}

final String repositoryBase = path.join(repo.path, 'amber-files');
stdout.writeln('Serving $repositoryBase to $targetIp');
Expand Down
4 changes: 2 additions & 2 deletions packages/fuchsia_ctl/lib/src/tar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ class SystemTar implements Tar {
) async {
final ProcessResult result = await processManager.run(<String>[
'tar',
'-xvf', src, //
'-xf', src, //
'-C', destination,
]);
]).timeout(const Duration(minutes: 10));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we know how long this takes on average? Would it really ever come close to 5? This seems long.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it on my machine it is ~0.5 mins setting the default to 5.

Test for the tar.dart change?

Done


return OperationResult.fromProcessResult(result);
}
Expand Down