@@ -14,6 +14,10 @@ import pathlib
import re
import subprocess
+import sys
+sys.path.append(os.path.join(sys.path[0], '../../meta/lib'))
+import oe.qa
+
# TODO
# - option to just list all broken files
# - test suite
@@ -78,12 +82,11 @@ def patchreview(patches):
else:
result.missing_sob = True
-
# Find the Upstream-Status tag
match = status_re.search(content)
if match:
- value = match.group(1)
- if value != "Upstream-Status:":
+ value = oe.qa.check_upstream_status(patch)
+ if value:
result.malformed_upstream_status = value
value = match.group(2).lower()