This takes care of having projects like hardware_replicant_libsamsung-ril
appear as libsamsung-ril in the subject prefix.

Signed-off-by: Denis 'GNUtoo' Carikli <[email protected]>
---
 patches/replicant_prepare_patch.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/patches/replicant_prepare_patch.py 
b/patches/replicant_prepare_patch.py
index 49efcac..a8d2d3f 100755
--- a/patches/replicant_prepare_patch.py
+++ b/patches/replicant_prepare_patch.py
@@ -120,6 +120,8 @@ def get_subject_prefix(config, revision):
     project_name = None
     if dirs[0] == "external":
         project_name = dirs[-1]
+    elif dirs[0] == "hardware" and dirs[1] == "replicant":
+        project_name = dirs[-1]
     elif dirs[0] == "device":
         project_name =repo_name
     else:
-- 
2.27.0

_______________________________________________
Replicant mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/replicant

Reply via email to