mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
build: refactor missing srclibs error reporting for only .yml
This commit is contained in:
parent
bd1f05e370
commit
da31120b5a
@ -203,15 +203,12 @@ 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'))
|
||||||
if os.path.isfile(os.path.join('srclibs', name + '.yml')):
|
srclibsfile = os.path.join('srclibs', name + '.yml')
|
||||||
ftp.put(os.path.join('srclibs', name + '.yml'),
|
if os.path.isfile(srclibsfile):
|
||||||
name + '.yml')
|
ftp.put(srclibsfile, os.path.basename(srclibsfile))
|
||||||
else:
|
else:
|
||||||
raise BuildException("can not find metadata file for "
|
raise BuildException(_('cannot find required srclibs: "{path}"')
|
||||||
"'{name}', please make sure it is "
|
.format(path=srclibsfile))
|
||||||
"present in your 'srclibs' folder."
|
|
||||||
"(supported format: 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…
Reference in New Issue
Block a user