From 93bc37feb5bc3dfd7a7420b95301adfc3cb453f1 Mon Sep 17 00:00:00 2001 From: Leigh B Stoller Date: Fri, 9 Apr 2010 12:18:03 -0600 Subject: [PATCH] Add SetNextOS() function. --- db/OSinfo.pm.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/db/OSinfo.pm.in b/db/OSinfo.pm.in index 0d9e7a601..10a483ff4 100644 --- a/db/OSinfo.pm.in +++ b/db/OSinfo.pm.in @@ -577,6 +577,16 @@ sub ResolveNextOSID($;$) return OSinfo->Lookup($osid); } +# +# Set the nextosid. +# +sub SetNextOS($$) +{ + my ($self, $nextosinfo) = @_; + + return $self->Update({"nextosid" => $nextosinfo->osid()}); +} + # # Check if a particular feature is supported. # -- GitLab