It seems like this function sometimes doesn't return non-zero exit code even though it fails to fetch some packages (e.g. due to a network error), so log its status code to check if this is really the case.