-
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
Oracle Linux support #290
Oracle Linux support #290
Conversation
Signed-off-by: Avi Miller <[email protected]>
Signed-off-by: Avi Miller <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! It looks great! Just some tiny safety nitpicks around handling file descriptors.
if err != nil { | ||
log.Errorf("could not download Oracle's update list: %s", err) | ||
return resp, cerrors.ErrCouldNotDownload | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defer r.Body.Close()
path := filepath.Join(filepath.Dir(filename)) | ||
|
||
// Test parsing testdata/fetcher_oracle_test.1.xml | ||
testFile, _ := os.Open(path + "/testdata/fetcher_oracle_test.1.xml") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defer testFile.Close()
} | ||
} | ||
|
||
testFile, _ = os.Open(path + "/testdata/fetcher_oracle_test.2.xml") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defer testFile2.Close()
Signed-off-by: Avi Miller <[email protected]>
This PR provides support for fetching Oracle Linux OVAL data from Oracle and scanning Oracle Linux based images.
This resolves #78.