mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 16:22:55 +00:00
Exit with message if unable to look for file
This commit is contained in:
parent
5e8e77dfad
commit
af648d3af8
1 changed files with 9 additions and 1 deletions
|
@ -97,8 +97,16 @@ class StreamLookasideCache(CGILookasideCache):
|
|||
"""
|
||||
_name = utils.get_repo_name(name) if is_dist_git(os.getcwd()) else name
|
||||
|
||||
return super(StreamLookasideCache, self).remote_file_exists(
|
||||
try:
|
||||
status = super(StreamLookasideCache, self).remote_file_exists(
|
||||
_name, filename, hashstr)
|
||||
except UploadError as e:
|
||||
self.log.info('Error checking for %s at %s'
|
||||
% (filename, self.upload_url))
|
||||
self.log.info(e)
|
||||
raise SystemExit
|
||||
|
||||
return status
|
||||
|
||||
def upload(self, name, filename, hashstr, offline=False):
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue