-
Notifications
You must be signed in to change notification settings - Fork 8
Description
I finally got around to updating my errata sync stuff for spacewalk, and in so doing I ran into a number of issues with version 0.7 of the script. I wasn't aware of any other way to contact/submit the issues so I'll list out the changes here:
In centos-errata.py...
Line 854:
Changed from: print "Errata '%s' doesnt match any of the known types " % erratum_subject
Changed to: print "Errata '%s' doesnt match any of the known types " % message_subject
Line 1046:
Changed from: mailarchive_url = MAILARCHIVE_BASE
Changed to: mailarchive_url = MessageMailArchive.MAILARCHIVE_BASE
These changes addressed "global name not defined" issues that I would receive when running the script.
Also, my directory structure is not conducive to using the "dir" search strategy. I was looking for a quick solution, so I created a symlink directory with the various packages symlinked (added to my daily cron that runs spacewalk-repo-sync):
rm -f /var/satellite/symlinks/*
find /var/satellite -iname '*.rpm' -exec ln -s -t /var/satellite/symlinks {} ;
I think it'd be nice to have a find or locate search strategy added at some point. I may start working on it myself but I'm not great with Python.