Skip to content
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

Merged
merged 4 commits into from
Dec 20, 2016
Merged

Oracle Linux support #290

merged 4 commits into from
Dec 20, 2016

Conversation

Djelibeybi
Copy link
Contributor

This PR provides support for fetching Oracle Linux OVAL data from Oracle and scanning Oracle Linux based images.

This resolves #78.

Copy link
Contributor

@jzelinskie jzelinskie left a 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
}
Copy link
Contributor

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")
Copy link
Contributor

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")
Copy link
Contributor

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 <avi.miller@oracle.com>
@jzelinskie jzelinskie added component/fetcher kind/feature request wishes for new functionality/docs labels Dec 20, 2016
@jzelinskie jzelinskie merged commit 7d3d186 into quay:master Dec 20, 2016
@Djelibeybi Djelibeybi deleted the oraclelinux-support branch December 21, 2016 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature request wishes for new functionality/docs
Development

Successfully merging this pull request may close these issues.

Clair support for Oracle Linux
2 participants