updater: fix typos
This commit is contained in:
parent
5469937a7e
commit
e91365f4b3
@ -58,7 +58,7 @@ func init() {
|
|||||||
|
|
||||||
// FetchUpdate fetches vulnerability updates from the Debian Security Tracker.
|
// FetchUpdate fetches vulnerability updates from the Debian Security Tracker.
|
||||||
func (fetcher *DebianFetcher) FetchUpdate() (resp updater.FetcherResponse, err error) {
|
func (fetcher *DebianFetcher) FetchUpdate() (resp updater.FetcherResponse, err error) {
|
||||||
log.Info("fetching Debian vulneratibilities")
|
log.Info("fetching Debian vulnerabilities")
|
||||||
|
|
||||||
// Download JSON.
|
// Download JSON.
|
||||||
r, err := http.Get(url)
|
r, err := http.Get(url)
|
||||||
|
@ -86,7 +86,7 @@ func init() {
|
|||||||
|
|
||||||
// FetchUpdate gets vulnerability updates from the Red Hat OVAL definitions.
|
// FetchUpdate gets vulnerability updates from the Red Hat OVAL definitions.
|
||||||
func (f *RHELFetcher) FetchUpdate() (resp updater.FetcherResponse, err error) {
|
func (f *RHELFetcher) FetchUpdate() (resp updater.FetcherResponse, err error) {
|
||||||
log.Info("fetching Red Hat vulneratibilities")
|
log.Info("fetching Red Hat vulnerabilities")
|
||||||
|
|
||||||
// Get the first RHSA we have to manage.
|
// Get the first RHSA we have to manage.
|
||||||
flagValue, err := database.GetFlagValue(rhelUpdaterFlag)
|
flagValue, err := database.GetFlagValue(rhelUpdaterFlag)
|
||||||
|
@ -81,7 +81,7 @@ func init() {
|
|||||||
|
|
||||||
// FetchUpdate gets vulnerability updates from the Ubuntu CVE Tracker.
|
// FetchUpdate gets vulnerability updates from the Ubuntu CVE Tracker.
|
||||||
func (fetcher *UbuntuFetcher) FetchUpdate() (resp updater.FetcherResponse, err error) {
|
func (fetcher *UbuntuFetcher) FetchUpdate() (resp updater.FetcherResponse, err error) {
|
||||||
log.Info("fetching Ubuntu vulneratibilities")
|
log.Info("fetching Ubuntu vulnerabilities")
|
||||||
|
|
||||||
// Check to see if the repository does not already exist.
|
// Check to see if the repository does not already exist.
|
||||||
if _, pathExists := os.Stat(repositoryLocalPath); repositoryLocalPath == "" || os.IsNotExist(pathExists) {
|
if _, pathExists := os.Stat(repositoryLocalPath); repositoryLocalPath == "" || os.IsNotExist(pathExists) {
|
||||||
|
Loading…
Reference in New Issue
Block a user