Unverified Commit 5a434c61 authored by xster's avatar xster Committed by GitHub

Let the packaging recipe use gsutil.py (#26402)

parent d4d1b29a
......@@ -534,7 +534,7 @@ class ArchivePublisher {
bool failOk = false,
}) async {
return _processRunner.runProcess(
<String>['gsutil']..addAll(args),
<String>['gsutil.py', '--']..addAll(args),
workingDirectory: workingDirectory,
failOk: failOk,
);
......@@ -561,7 +561,7 @@ class ArchivePublisher {
args.addAll(<String>['-h', 'Content-Type:$mimeType']);
}
args.addAll(<String>['cp', src, dest]);
return _runGsUtil(args);
return await _runGsUtil(args);
}
}
......
......@@ -257,11 +257,11 @@ void main() {
''';
File(jsonPath).writeAsStringSync(releasesJson);
final Map<String, List<ProcessResult>> calls = <String, List<ProcessResult>>{
'gsutil rm $gsArchivePath': null,
'gsutil -h Content-Type:$archiveMime cp $archivePath $gsArchivePath': null,
'gsutil cp $gsJsonPath $jsonPath': null,
'gsutil rm $gsJsonPath': null,
'gsutil -h Content-Type:application/json cp $jsonPath $gsJsonPath': null,
'gsutil.py -- rm $gsArchivePath': null,
'gsutil.py -- -h Content-Type:$archiveMime cp $archivePath $gsArchivePath': null,
'gsutil.py -- cp $gsJsonPath $jsonPath': null,
'gsutil.py -- rm $gsJsonPath': null,
'gsutil.py -- -h Content-Type:application/json cp $jsonPath $gsJsonPath': null,
};
processManager.fakeResults = calls;
final File outputFile = File(path.join(tempDir.absolute.path, archiveName));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment