diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-22 05:10:49 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-22 05:10:49 +0100 |
commit | 054df308d46daa9563ecb0123e7a2d166b8c56cd (patch) | |
tree | b9ca61e69d525c9c03b94b9f4fcd9405f72c0732 /contrib/oeaudit/freebsd.py | |
parent | fc461bbba2814ee97eb20cbb1c01b82218ab3abd (diff) |
oeaudit: Do the PR thin inside the freebsd config.
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) + |