<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>Yet another errata clone script ... for CentOS and RedHat<br /><br />Hi,<br /><br />based on some existing scripts (eva_direct_sync.pl and errata-import.pl), I've<br />created a new script. Reason for the rework:<br />- we have redhat and centos packages in spacewalk, both can have the same<br />  package names, which would result in redhat packages being pushed in centos<br />  channels because of the errata create (and thus everything fails)<br />- the XML file of errata-import.pl is ok, but updated by one person and only<br />  for security errata (I think)<br />- errata-import.pl had good code, but no RHN integration, and is too easy<br />  for missing packages (if 1 package from the errata is there, the errata is<br />  created, while other packages might be missing)<br />- always different scripts were created/used for redhat and centos errata<br /><br />So, my script (well, combo of shell and perl) was born:<br />For CentOS:<br />- first some shell calls to get the latest announces from the centos archive<br />  (but not by scraping the announces list, but getting digests, much less<br />  traffic then)<br />  You can change the number of announces anyway you want by changing the<br />  wget command to your liking<br />- then the perl script comes along, parsing the digest files and looking in 1<br />  channel (yes, one) for package availability and creating the errata there.<br />  It has optional integration with RHN for notes, description, topic info, and<br />  CVE's and/or can use the OVAL file like the errata-import.pl script does.<br />  The created errata gets a suffix based on the OS version and architecture<br />  (e.g. ":C5-64" or "C6-32"), because the same errata can exist for multiple<br />  OS versions and architectures (and creating the errata for more than one<br />  base channel would result in packages being copied which is a mess again).<br />  Also a proxy can be defined for spacewalk and or RHN servers<br />Or, for RedHat:<br />- log in to RHN, get the errata for the specified channel<br />  (possibility to define the date range)<br />- then follow the same logic as for CentOS</p>
<p> </p>
<p>If anybody is interested, I'll put it on github or so ...</p>
<p> </p>
<p>Franky</p>
<div> </div>
</body></html>