mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
support copying yml srclibs to buildserver vm during builds
This commit is contained in:
parent
8344e510f6
commit
911e86fc87
1 changed files with 12 additions and 2 deletions
|
|
@ -203,8 +203,18 @@ def build_server(app, build, vcs, build_dir, output_dir, log_dir, force):
|
||||||
send_dir(lib)
|
send_dir(lib)
|
||||||
# Copy the metadata file too...
|
# Copy the metadata file too...
|
||||||
ftp.chdir(posixpath.join(homedir, 'srclibs'))
|
ftp.chdir(posixpath.join(homedir, 'srclibs'))
|
||||||
ftp.put(os.path.join('srclibs', name + '.txt'),
|
if os.path.isfile(os.path.join('srclibs', name + '.yml')):
|
||||||
name + '.txt')
|
ftp.put(os.path.join('srclibs', name + '.yml'),
|
||||||
|
name + '.yml')
|
||||||
|
elif os.path.isfile(os.path.join('srclibs', name + '.txt')):
|
||||||
|
ftp.put(os.path.join('srclibs', name + '.txt'),
|
||||||
|
name + '.txt')
|
||||||
|
else:
|
||||||
|
raise BuildException("can not find metadata file for "
|
||||||
|
"'{name}', please make sure it is "
|
||||||
|
"present in your 'srclibs' folder."
|
||||||
|
"(supported formats: txt, yml)"
|
||||||
|
.format(name=name))
|
||||||
# Copy the main app source code
|
# Copy the main app source code
|
||||||
# (no need if it's a srclib)
|
# (no need if it's a srclib)
|
||||||
if (not basesrclib) and os.path.exists(build_dir):
|
if (not basesrclib) and os.path.exists(build_dir):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue