summaryrefslogtreecommitdiffstats
path: root/doc/gen_pkgdiff.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/gen_pkgdiff.py')
-rw-r--r--doc/gen_pkgdiff.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/gen_pkgdiff.py b/doc/gen_pkgdiff.py
index ddacf44..11b3809 100644
--- a/doc/gen_pkgdiff.py
+++ b/doc/gen_pkgdiff.py
@@ -108,6 +108,18 @@ elif len(sys.argv) == 1:
108 prev_lic_file = get_param("prev_lic_file") 108 prev_lic_file = get_param("prev_lic_file")
109 new_lic_file = get_param("new_lic_file") 109 new_lic_file = get_param("new_lic_file")
110 110
111 if not (prev_baseline and prev_lic_file and new_lic_file):
112 print '<?xml version="1.0" encoding="ISO-8859-1"?>'
113 print '<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"'
114 print '"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">'
115 print '<section id="relinfo-package-set-changes">'
116 print ' <title>Changes in the Set of Provided Package</title>'
117 print ' <para>'
118 print ' N/A. No previous baseline defined.'
119 print ' </para>'
120 print '</section>'
121 exit(0)
122
111 new_file = os.path.relpath(os.path.join(repo_root, new_lic_file)) 123 new_file = os.path.relpath(os.path.join(repo_root, new_lic_file))
112 prev_file = "%s:%s" % (prev_baseline, prev_lic_file) 124 prev_file = "%s:%s" % (prev_baseline, prev_lic_file)
113 125