-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot fetching update on rhel-based os #7
Comments
Debian and Centos vulneratibilities fetched correctly in result. |
Hello, Yeah, I think the output from bzr is different on your platform. You're having that error on both Fedora and CentOS, with bzr 2.6.0 and 2.1.1, right ? I will try to reproduce it asap in order to fix it. Thanks. |
Yes - on both. |
Happens on Ubuntu 15.04 too, bzr 2.7.0dev1 |
On Ubuntu 12.04 with bzr 2.5.1 too. |
Unfortunately, I have not been able to reproduce the error yet. I just tried on Ubuntu 12.04 with bzr 2.5.1 and go1.4.2 and Clair has successfully pulled the Ubuntu vulnerabilities (it takes a long time tho as their repo is very, very slow). What is the output of, let's say: |
I tracked it down, it's a locale issue. I'm working on a PR. |
Output looks like -
and on another
|
Thanks - I totally understand now. |
I have a patch ready, but I need to verify that it works as expected. |
Patch is in #9, could the others try it? It works just fine for me. |
That would be part of the fix. However, I think that the regular expressions (https://github.com/coreos/clair/blob/f229083e1e52d2fea46cb7c69be05b5e5f32c680/updater/fetchers/ubuntu.go#L68) are still too specific. mrqwer88's bzr answers with Should probably as well make them more flexible? |
Yeah, my point is that I am afraid that |
Unfortunatly with national locale on Fedora -
problem reproduces with
If set LC_ALL to POSIX output -
and work. On centos 6 problem reproduced ( "Branched 10225 revision(s).") |
It is most likely enough:
With my environment patch:
This is essentially equivalent to |
Looks like with path it run like for me
With LANGUAGE must work -
|
On centos 6 problem with "revisions." vs " revision**(s)**." |
@mrqwer88 How did you get bzr running on CentOS 6? For me it crashes with
|
From epel -
|
Up to bzr 2.5 the old string 'revision(s)' is used, from 2.5 on 'revisions' is used. So we need to change the regex. |
May be more simple use -
for get revision number? |
I am not against that, it is actually used here, we could use that everywhere. |
It should fix for everyone, please re-open if it is not the case. |
Thanks a lot! Now it work good for me.
|
Updater: sync 2 sources of Red Hat's security data
Hello!
I try run clair on fedora and centos 6(binary builded on fedora 21).
After start it have errors like -
bzr versions 2.6.0 and 2.1.1.
Can you help fix it?
The text was updated successfully, but these errors were encountered: