Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba1b9c89 authored by Cole Faust's avatar Cole Faust Committed by Automerger Merge Worker
Browse files

Merge "Revert "Remove requirement that fsv_meta file is next to its inp...""...

Merge "Revert "Remove requirement that fsv_meta file is next to its inp..."" into main am: 3e581283

Original change: https://android-review.googlesource.com/c/platform/build/+/3496277



Change-Id: I069662a211723756e6db17fca9bc7b25d148ea96
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 64180e64 3e581283
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -230,6 +230,12 @@ if __name__ == '__main__':
  if not output_file:
    output_file = input_file + '.fsv_meta'

  if output_file != args.input + '.fsv_meta':
    sys.exit('When generating .fsv_meta files for symlinks, we assume that all fsv_meta files '
      'are named the same as the file they protect, just with the .fsv_meta suffix appended. '
      'We require that all .fsv_meta files follow this convention regardless of if it\'s a link or '
      'not. However {args.input} had a different output file: {args.output}')

  # remove the output file first, as switching between a file and a symlink can be complicated
  try:
    os.remove(output_file)