Centos-Errata icon indicating copy to clipboard operation
Centos-Errata copied to clipboard

Errata for both Centos 5/6 with same ID not updated/imported

Open philicious opened this issue 13 years ago • 2 comments

If you run the script twice for Centos5 errata and Centos6 errata, an errata which has the same ID for both versions wont be updated to also apply for the latter.

Example: [CentOS-announce] CESA-2012:0451 Important CentOS 5 rpm Update
[CentOS-announce] CESA-2012:0451 Important CentOS 6 rpm Update

ID is 0451. If you run the script for Centos5 first, the errata will be skipped for Centos6.

We would need a way to update existing errata

philicious avatar Apr 23 '12 12:04 philicious

I spent a few hours on this and realize it's probably a bug based on the fact that someone else is having the same issue! Anyone know of a fix?

sdot257 avatar Feb 10 '13 23:02 sdot257

So I think I fixed this.

 def getAdvisoryName(self):
    if self.centosVersion == "6":
        osId = "OL6"
    elif self.centosVersion == "5":
        osId = "OL5"
    else:
        osId = ""
    advisory_name="%s-%s-%s:%s" % (osId,self.errataType,self.errataYear,self.errataID)
    return advisory_name

sdot257 avatar Feb 11 '13 01:02 sdot257