[gnome-builder] autotools-templates: check for 'author' before usage
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] autotools-templates: check for 'author' before usage
- Date: Sun, 29 May 2016 11:55:10 +0000 (UTC)
commit d16ad504769ee3fa22315869e695205778c0880d
Author: Christian Hergert <chergert redhat com>
Date: Sun May 29 14:55:01 2016 +0300
autotools-templates: check for 'author' before usage
.../autotools_templates/__init__.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plugins/autotools-templates/autotools_templates/__init__.py
b/plugins/autotools-templates/autotools_templates/__init__.py
index 3ec1e23..fdde237 100644
--- a/plugins/autotools-templates/autotools_templates/__init__.py
+++ b/plugins/autotools-templates/autotools_templates/__init__.py
@@ -115,7 +115,10 @@ class AutotoolsTemplate(Ide.TemplateBase, Ide.ProjectTemplate):
self.language))
return
- author_name = params['author'].get_string()
+ if 'author' in params:
+ author_name = params['author'].get_string()
+ else:
+ author_name = GLib.get_real_name()
directory = Gio.File.new_for_path(dir_path)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]