]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit - src/pakfire/lib/functions.pl
pakfire: Better errorhandling on downloads
authorRobin Roevens <robin.roevens@disroot.org>
Wed, 23 Feb 2022 20:21:30 +0000 (21:21 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 25 Jun 2022 11:15:03 +0000 (11:15 +0000)
commit8ce729457d736aee35fc5f731cc6aa17ff549c73
tree8100a89eb4862bac3a69799ad49d6d62e189a4bb
parent0eaaa300d8c4d682d7302c39d36ffba1fde18ef7
pakfire: Better errorhandling on downloads

- Add true/false return codes to fetchfile, getmetafile and getmirrors
  indicating succes or failure.
- Check on those return codes and fail gracefully with clean
  error message(s) when downloads fail.
- Replace duplicate meta-file fetching code in dbgetlist with
  getmetafile function (fixing possibly missed cariage return
  conversion in meta-files).
- Remove pointless 5 retries to download server-list.db in
  selectmirror as fetchfile already retries 5 times.
src/pakfire/lib/functions.pl