mirror of
https://github.com/dart-lang/sdk
synced 2024-10-03 00:29:50 +00:00
drop chmod operations, should not be necessary
Bug: https://github.com/dart-lang/sdk/issues/55460 Change-Id: Ic811ff55e4af023ed00e9e2b32b907ef2253114b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/363540 Commit-Queue: Sigmund Cherem <sigmund@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com> Auto-Submit: Jake Macdonald <jakemac@google.com>
This commit is contained in:
parent
7df98cd150
commit
d82385e372
|
@ -141,11 +141,6 @@ class IOPipeline extends Pipeline<IOModularStep> {
|
||||||
var newPath =
|
var newPath =
|
||||||
stepFolder.uri.resolve(_toFileName(module, dataId)).toFilePath();
|
stepFolder.uri.resolve(_toFileName(module, dataId)).toFilePath();
|
||||||
await originalFile.copy(newPath);
|
await originalFile.copy(newPath);
|
||||||
// If the input was executable, ensure it still is.
|
|
||||||
var originalMode = (await originalFile.stat()).modeString();
|
|
||||||
if (originalMode.contains('x')) {
|
|
||||||
await Process.run('chmod', [originalMode, newPath]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (step.needsSources) {
|
if (step.needsSources) {
|
||||||
|
@ -172,11 +167,6 @@ class IOPipeline extends Pipeline<IOModularStep> {
|
||||||
.resolve(_toFileName(module, dataId, configSpecific: true))
|
.resolve(_toFileName(module, dataId, configSpecific: true))
|
||||||
.toFilePath();
|
.toFilePath();
|
||||||
await outputFile.copy(newPath);
|
await outputFile.copy(newPath);
|
||||||
// If the output was executable, ensure it still is.
|
|
||||||
var originalMode = (await outputFile.stat()).modeString();
|
|
||||||
if (originalMode.contains('x')) {
|
|
||||||
await Process.run('chmod', [originalMode, newPath]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
await stepFolder.delete(recursive: true);
|
await stepFolder.delete(recursive: true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue