diff options
author | Oliver Smith <ollieparanoid@bitmessage.ch> | 2019-05-02 22:14:30 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-06-12 12:18:59 +0000 |
commit | 635a699365e0bdce9d955e113b3fc6029a1f983f (patch) | |
tree | 19ba600710101734b3689539d8257b33d4c1c7c5 /abump.in | |
parent | 8d092443d95ec5da55524c39bcb4728a67e95885 (diff) | |
download | abuild-635a699365e0bdce9d955e113b3fc6029a1f983f.tar.gz abuild-635a699365e0bdce9d955e113b3fc6029a1f983f.tar.bz2 abuild-635a699365e0bdce9d955e113b3fc6029a1f983f.tar.xz abuild-635a699365e0bdce9d955e113b3fc6029a1f983f.zip |
newapkbuild: fix empty function regression
Since the obsolete 'cd "$builddir"' statements have been removed in [1],
build(), check() and package() can generate empty functions if no build
system is specified or if there is no default for the given build
system. newapkbuild will then fail, as it tries to parse the script it
generated:
$ cd /home/pmos && newapkbuild test
/usr/bin/abuild: /home/pmos/test/APKBUILD: line 18: syntax error: unexpected "}"
$ cat test/APKBUILD
...
build() {
}
...
Fix this by placing ":" in functions that would be empty.
[1]: f83d19ce79ab9f2dcc5238346a910cd18ae0f330
Diffstat (limited to 'abump.in')
0 files changed, 0 insertions, 0 deletions