[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 1/2] BuildSupport: provide submodule_have
Convenience function. Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> --- Osstest/BuildSupport.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Osstest/BuildSupport.pm b/Osstest/BuildSupport.pm index f3b8c63..6d43cbc 100644 --- a/Osstest/BuildSupport.pm +++ b/Osstest/BuildSupport.pm @@ -43,7 +43,7 @@ BEGIN { xendist $xendist - submodulefixup + submodulefixup submodule_have ); %EXPORT_TAGS = ( ); @@ -144,4 +144,9 @@ sub submodulefixup ($$$$) { return \@submodules; } +sub submodule_have ($$) { + my ($submodules, $ourname) = @_; + return !!grep { $_->{OurName} eq $ourname } @$submodules; +} + 1; -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |