summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-09-08 19:25:47 -0400
committerNat Goodspeed <nat@lindenlab.com>2023-09-08 19:25:47 -0400
commitee82cd046f9bedc6a3eac96afc90f4413786669f (patch)
tree91a862dfa12f7f30ce20826239c9f620ecdbaa0a
parent63d5d38e36061291343eddcec24a7243f896b980 (diff)
SL-19242: Resolve '..' in viwer_app path before trying to upload.
-rwxr-xr-xindra/newview/viewer_manifest.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index 679a3441b9..e93a3db6d6 100755
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -492,8 +492,11 @@ class WindowsManifest(ViewerManifest):
# Emit the whole app image as one of the GitHub step outputs. The
# current get_dst_prefix() is the top-level contents of the app
# directory -- so hop outward to the directory containing the app
- # name.
- self.set_github_output_path('viewer_app', os.pardir)
+ # name. But upload_artifact refuses to deal with '..', so resolve
+ # the path before setting viewer_app.
+ self.set_github_output_path(
+ 'viewer_app',
+ os.path.abspath(os.path.join(self.get_dst_prefix(), os.pardir)))
with self.prefix(src=os.path.join(pkgdir, "VMP")):
# include the compiled launcher scripts so that it gets included in the file_list
@@ -858,7 +861,9 @@ class DarwinManifest(ViewerManifest):
self.path(os.path.join(self.args['configuration'], self.channel()+".app"), dst="")
# capture the entire destination app bundle, including the containing
# .app directory
- self.set_github_output_path('viewer_app', os.pardir)
+ self.set_github_output_path(
+ 'viewer_app',
+ os.path.abspath(os.path.join(self.get_dst_prefix(), os.pardir)))
pkgdir = os.path.join(self.args['build'], os.pardir, 'packages')
relpkgdir = os.path.join(pkgdir, "lib", "release")