Skip to content

Multiple issues with "global name not defined" in centos-errata.py #3

@korymatu

Description

@korymatu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions