Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame^] | 1 | From d943e41d64da6af89a6b8224110299ad88747497 Mon Sep 17 00:00:00 2001 |
| 2 | From: Akshay Bhat <akshay.bhat@timesys.com> |
| 3 | Date: Mon, 14 Feb 2022 13:00:31 -0500 |
| 4 | Subject: [PATCH] installed_OS_is_openembedded: Update pattern match |
| 5 | |
| 6 | The VERSION_ID string is no longer quoted with f451c68667cca of |
| 7 | openembedded-core. Update the pattern match check in |
| 8 | installed_OS_is_openembedded to match the same. |
| 9 | |
| 10 | Signed-off-by: Akshay Bhat <akshay.bhat@timesys.com> |
| 11 | --- |
| 12 | shared/checks/oval/installed_OS_is_openembedded.xml | 2 +- |
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/shared/checks/oval/installed_OS_is_openembedded.xml b/shared/checks/oval/installed_OS_is_openembedded.xml |
| 16 | index 01df16b43..eaf9f2b10 100644 |
| 17 | --- a/shared/checks/oval/installed_OS_is_openembedded.xml |
| 18 | +++ b/shared/checks/oval/installed_OS_is_openembedded.xml |
| 19 | @@ -23,7 +23,7 @@ |
| 20 | </ind:textfilecontent54_test> |
| 21 | <ind:textfilecontent54_object id="obj_openembedded" version="1" comment="Check OpenEmbedded version"> |
| 22 | <ind:filepath>/etc/os-release</ind:filepath> |
| 23 | - <ind:pattern operation="pattern match">^VERSION_ID=\"nodistro\.[0-9].$</ind:pattern> |
| 24 | + <ind:pattern operation="pattern match">^VERSION_ID=nodistro\.[0-9]$</ind:pattern> |
| 25 | <ind:instance datatype="int">1</ind:instance> |
| 26 | </ind:textfilecontent54_object> |
| 27 | |
| 28 | -- |
| 29 | 2.25.1 |
| 30 | |