mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 23:40:29 +03:00
Run shell scripts with -e (Closes: #1035)
Make sudo, init prebuild, build and Prepare fields lists and only concatenate them with '; ' before execution. This allows arbitrary commands inside the fileds (even && and ';') as we don't need to split the commands again for rewritemeta.
This commit is contained in:
parent
49d8ba3b9b
commit
557fe87d44
10 changed files with 477 additions and 254 deletions
|
|
@ -375,7 +375,7 @@ class CommonTest(unittest.TestCase):
|
|||
build = fdroidserver.metadata.Build()
|
||||
build.commit = 'master'
|
||||
build.gradle = ['yes']
|
||||
build.prebuild = 'test -d $$FakeSrcLib$$/testdirshouldexist' # actual test condition
|
||||
build.prebuild = ['test -d $$FakeSrcLib$$/testdirshouldexist'] # actual test condition
|
||||
build.srclibs = [srclibname + '@1.2.3']
|
||||
build.subdir = subdir
|
||||
build.versionCode = 0xCAFE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue