[gnome-builder] create-project: prevent 'test' as project name



commit 9e89f10396c572be7fea3153a8f8d74e0fbf14ca
Author: Günther Wagner <info gunibert de>
Date:   Sun Jul 18 21:36:21 2021 +0200

    create-project: prevent 'test' as project name

 src/plugins/create-project/gbp-create-project-surface.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/plugins/create-project/gbp-create-project-surface.c 
b/src/plugins/create-project/gbp-create-project-surface.c
index c84280971..7fc7757c1 100644
--- a/src/plugins/create-project/gbp-create-project-surface.c
+++ b/src/plugins/create-project/gbp-create-project-surface.c
@@ -130,6 +130,10 @@ validate_name (const gchar *name)
   if (g_unichar_isdigit (g_utf8_get_char (name)))
     return FALSE;
 
+  // meson reserved this as keyword and therefore its not allowed as project name
+  if (ide_str_equal0 (name, "test"))
+    return FALSE;
+
   for (; *name; name = g_utf8_next_char (name))
     {
       gunichar ch = g_utf8_get_char (name);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]