Commit graph

7 commits

Author SHA1 Message Date
Alfredo Moralejo
510f1aa0bc Use http code to check object in lookaside cache
Currently, it only checks the size of the http object returned but it
may happen that the size of the 404 error page match the size of the
tarball. You may think this is a corner case we'll never hit... well, we
hit it, :)

This patch it's adding a check based on the http code, so to give it as
already uploaded we need it to return 200 code and match the actual
size.
2021-10-26 10:17:32 +02:00
Pablo Greco
b045956f51 Adapt the check before upload to the new format 2020-08-07 15:24:12 +00:00
Fabian Arrotin
e6e12ecbfd Cosmetic change for lookaside_upload and better curl return code check
Signed-off-by: Fabian Arrotin <arrfab@centos.org>
2020-05-29 18:00:58 +02:00
Fabian Arrotin
c43fda67c5 Added simple verification that source is reachable after upload
Signed-off-by: Fabian Arrotin <arrfab@centos.org>
2019-11-13 12:29:09 +01:00
Johnny Hughes
e575c2e598 set baseurl to git.centos.org 2019-04-12 08:00:45 -05:00
Pablo Greco
353eaf8879 Check file existence before upload 2019-04-11 16:36:20 +00:00
Fabian Arrotin
9023a882e1 Initial upload tool for git.stg test, more to be included in centpkg later
Signed-off-by: Fabian Arrotin <arrfab@centos.org>
2018-10-25 17:32:30 +02:00