diff options
Diffstat (limited to 'contrib/oeaudit/freebsd.py')
-rw-r--r-- | contrib/oeaudit/freebsd.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/oeaudit/freebsd.py b/contrib/oeaudit/freebsd.py index 5e8c22ec0c..e5e8440a2d 100644 --- a/contrib/oeaudit/freebsd.py +++ b/contrib/oeaudit/freebsd.py @@ -179,3 +179,14 @@ def read_auditfile(filename): return packages +def prepare_version(bsd_version): + """ + FreeBSD is adding ,1 for revisions.. remove that + """ + # FIXME return a tuple with a revision... + rev = "r0" + split = bsd_version.rsplit(',', 1) + split = split[0] + split = split.rsplit('_', 1) + return (split[0], rev) + |