Centos-Errata
Centos-Errata copied to clipboard
Errata for both Centos 5/6 with same ID not updated/imported
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
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?
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