Alpine build tools
Go to file
Oliver Smith 07d9f3bf6b Fix: incomplete partfile gets renamed to distfile
Abuild-fetch uses curl (fallback to wget) to download files. They are
saved with a ".part" extension first, so they can be resumed if
necessary. When the download is through, the ".part" extension gets
removed. However, when the server does not support resume of downloads
(e.g. GitHub's on the fly generated tarballs), then the ".part"
extension got removed anyway. Abuild aborts in that case. But when
running a third time, the distfile exists and it is assumed that this
is the full download.

Changes:
* abuild-fetch:
  * Only remove the ".part" extension, when curl/wget exit with 0
  * Pass the exit code from curl/wget as exit code of abuild-fetch
  * Wherever abuild-fetch would return an exit code on its own, the
    codes have been changed to be > 200 (so they don't collide with
    curl's as of now 92 exit codes)
  * Remove undocumented feature of downloading multiple source URLs at
    a time. This doesn't match with the usage description, was not used
    in abuild at all and it would have made it impossible to pass the
    exit code.
* abuild:
  * After downloading, when curl is installed and abuild-fetch has
    33 as exit code (curl's HTTP range error), then delete the partfile
    and try the download again.
2018-10-03 08:33:52 +00:00
.devbuildrc add a .devbuildrc for abuild subproject itself 2009-01-15 16:11:19 +00:00
.editorconfig add .editorconfig and fix code formatting 2016-08-20 16:16:37 +02:00
.gitignore git: ignore abuild-rmtemp executable 2017-09-19 12:02:57 +00:00
APKBUILD.5 APKBUILD.5: fix mdoc syntax warnings 2018-10-03 08:24:18 +00:00
Makefile Add initial manpage drafts 2018-10-03 08:24:18 +00:00
abuild-fetch.c Fix: incomplete partfile gets renamed to distfile 2018-10-03 08:33:52 +00:00
abuild-gzsplit.c abuild-gzsplit: new tool to split .apk to it's base components 2017-01-10 14:16:16 +02:00
abuild-keygen.in replace deprecated `...` syntax with $(...) in shell scripts 2016-08-23 00:09:07 +02:00
abuild-rmtemp.c abuild-rmtemp: define _XOPEN_SOURCE to ensure FTW_DEPTH is visible 2017-09-19 12:02:57 +00:00
abuild-sign.in abuild: call tar portably 2017-06-23 11:27:41 +03:00
abuild-sudo.c abuild-sudo: prevent forging of user name 2017-07-20 15:14:43 +03:00
abuild-tar.c abuild-tar: improve portability 2016-05-20 10:19:08 +02:00
abuild.conf abuild: build in chroot 2017-06-27 14:52:50 +03:00
abuild.in Fix: incomplete partfile gets renamed to distfile 2018-10-03 08:33:52 +00:00
abump.in replace deprecated `...` syntax with $(...) in shell scripts 2016-08-23 00:09:07 +02:00
apkbuild-cpan.in apkbuild-cpan: separate './Build test' to check step 2017-07-11 15:05:10 +03:00
apkbuild-gem-resolver.in add .editorconfig and fix code formatting 2016-08-20 16:16:37 +02:00
apkbuild-pypi.in apkbuild-pypi.in: modernize 2017-09-19 11:59:18 +00:00
apkgrel.in replace deprecated `...` syntax with $(...) in shell scripts 2016-08-23 00:09:07 +02:00
bootchartd replace deprecated `...` syntax with $(...) in shell scripts 2016-08-23 00:09:07 +02:00
buildlab.in buildlab: replace echos in usage with heredoc 2016-08-23 00:09:07 +02:00
checkapk.in indent heredocs when possible 2016-08-23 00:09:06 +02:00
config.guess abuild: add update_config_guess 2016-08-12 15:26:06 +02:00
config.sub abuild: add update_config_guess 2016-08-12 15:26:06 +02:00
functions.sh.in abuild: add triplet definitions for mips architectures 2017-12-11 09:04:46 +02:00
newapkbuild.1 newapkbuild.1: fix mdoc style 2018-10-03 08:24:18 +00:00
newapkbuild.in newapkbuild: use https for sourceforge download links 2018-09-24 21:43:49 +02:00
sample.APKBUILD sample.APKBUILD: use https for sourceforge download links 2018-09-24 21:43:49 +02:00
sample.confd sample: use lowercase in init.d/conf.d sample files 2009-12-30 08:55:33 +00:00
sample.initd sample.initd: modernize 2016-06-13 12:34:05 +00:00
sample.post-install abuild: fixes for new install scripts 2009-03-06 17:51:53 +00:00
sample.pre-install abuild: fixes for new install scripts 2009-03-06 17:51:53 +00:00