[error-report-web][PATCH] Add SPDX license headers to source files


Milan Shah
 

Post/* all ( except Post/migrations/* , __init__.py and templatetags/* )
have some sort of MIT headers; adding SPDX header to make it obvious.

project/* & test-data/* all ( except __init__.py ) have some sort of MIT headers;
adding SPDX header to make it obvious.

This address bug #13530
https://bugzilla.yoctoproject.org/show_bug.cgi?id=13530

Signed-off-by: Milan Shah <mshah@...>
---
Post/admin.py | 2 ++
Post/createStatistics.py | 1 +
Post/feed.py | 2 ++
Post/management/commands/culldb.py | 2 ++
Post/models.py | 2 ++
Post/parser.py | 1 +
Post/views.py | 2 ++
manage.py | 2 ++
project/settings.py | 2 ++
project/urls.py | 2 ++
project/wsgi.py | 4 ++++
test-data/test-send-error.py | 3 ++-
12 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/Post/admin.py b/Post/admin.py
index f11ff65..43aa9a6 100644
--- a/Post/admin.py
+++ b/Post/admin.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT
+#
# error reporting tool - admin interface definitions
#
# Copyright (C) 2013 Intel Corporation
diff --git a/Post/createStatistics.py b/Post/createStatistics.py
index 213927a..09d098e 100644
--- a/Post/createStatistics.py
+++ b/Post/createStatistics.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+# SPDX-License-Identifier: MIT

# Create statistics. Update database.
#
diff --git a/Post/feed.py b/Post/feed.py
index 745ee23..7e5bfdb 100644
--- a/Post/feed.py
+++ b/Post/feed.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT
+#
# error-reporting-tool - URL definitions
#
# Copyright (C) 2013 Intel Corporation
diff --git a/Post/management/commands/culldb.py b/Post/management/commands/culldb.py
index 698537c..bd70ffc 100644
--- a/Post/management/commands/culldb.py
+++ b/Post/management/commands/culldb.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT
+#
# error-reporting-tool - culldb
#
# Copyright (C) 2015 Intel Corporation
diff --git a/Post/models.py b/Post/models.py
index ddf2fc7..cf8c1c2 100644
--- a/Post/models.py
+++ b/Post/models.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT
+#
# error-reporting-tool - model definitions
#
# Copyright (C) 2013 Intel Corporation
diff --git a/Post/parser.py b/Post/parser.py
index 9639308..ed65d4f 100644
--- a/Post/parser.py
+++ b/Post/parser.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+# SPDX-License-Identifier: MIT

# Add errors to database from client
#
diff --git a/Post/views.py b/Post/views.py
index 7f2cffb..cc6aed9 100644
--- a/Post/views.py
+++ b/Post/views.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT
+#
# error-reporting-tool - view definitions
#
# Copyright (C) 2013 Intel Corporation
diff --git a/manage.py b/manage.py
index 82cfa83..8edb2e4 100755
--- a/manage.py
+++ b/manage.py
@@ -1,4 +1,6 @@
#!/usr/bin/env python
+# SPDX-License-Identifier: MIT
+
import os
import sys

diff --git a/project/settings.py b/project/settings.py
index 3c6c87e..2d1ab92 100644
--- a/project/settings.py
+++ b/project/settings.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT
+#
# Django settings for error-reporting-tool project.
# Based on settings.py from the Django project template
# Copyright (c) Django Software Foundation and individual contributors.
diff --git a/project/urls.py b/project/urls.py
index 0e8f39c..1f51c7c 100644
--- a/project/urls.py
+++ b/project/urls.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT
+#
# error-reporting-tool - URL definitions
#
# Copyright (C) 2013 Intel Corporation
diff --git a/project/wsgi.py b/project/wsgi.py
index 7d4fc73..8d3ba66 100644
--- a/project/wsgi.py
+++ b/project/wsgi.py
@@ -1,3 +1,7 @@
+#
+# SPDX-License-Identifier: MIT
+#
+
"""
WSGI config for errorsreport project.

diff --git a/test-data/test-send-error.py b/test-data/test-send-error.py
index 7070c18..1252855 100755
--- a/test-data/test-send-error.py
+++ b/test-data/test-send-error.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
-#
+# SPDX-License-Identifier: MIT
+
# test/example script for sending data to error-report-web

import urllib2
--
2.7.4

Join yocto@lists.yoctoproject.org to automatically receive all group messages.