app_deploy: escape pip requirements installed via command line

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2023-05-25 19:17:12 -04:00
parent 348b7f521f
commit c609060352
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 2 additions and 1 deletions

View File

@ -320,7 +320,8 @@ class AppDeploy(BaseDeploy):
return
args = f"-r {requirements}"
else:
args = " ".join(requirements)
reqs = [req.replace("\"", "'") for req in requirements]
args = " ".join([f"\"{req}\"" for req in reqs])
self.notify_status("Updating python packages...")
try:
await self.cmd_helper.run_cmd(