File glib2-gdbus-codegen-version.patch of Package glib2.28512

Index: glib-2.70.0/gio/gdbus-2.0/codegen/codegen.py
===================================================================
--- glib-2.70.0.orig/gio/gdbus-2.0/codegen/codegen.py
+++ glib-2.70.0/gio/gdbus-2.0/codegen/codegen.py
@@ -95,8 +95,7 @@ class HeaderCodeGenerator:
     # ----------------------------------------------------------------------------------------------------
 
     def generate_header_preamble(self):
-        basenames = ", ".join(self.input_files_basenames)
-        self.outfile.write(LICENSE_STR.format(config.VERSION, basenames))
+        self.outfile.write(LICENSE_STR)
         self.outfile.write("\n")
 
         if self.use_pragma:
@@ -1040,8 +1039,7 @@ class InterfaceInfoHeaderCodeGenerator:
     # ----------------------------------------------------------------------------------------------------
 
     def generate_header_preamble(self):
-        basenames = ", ".join(self.input_files_basenames)
-        self.outfile.write(LICENSE_STR.format(config.VERSION, basenames))
+        self.outfile.write(LICENSE_STR)
         self.outfile.write("\n")
 
         if self.use_pragma:
@@ -1112,8 +1110,7 @@ class InterfaceInfoBodyCodeGenerator:
     # ----------------------------------------------------------------------------------------------------
 
     def generate_body_preamble(self):
-        basenames = ", ".join(self.input_files_basenames)
-        self.outfile.write(LICENSE_STR.format(config.VERSION, basenames))
+        self.outfile.write(LICENSE_STR)
 
         if self.symbol_decoration_define is not None:
             self.outfile.write("\n")
@@ -1466,8 +1463,7 @@ class CodeGenerator:
     # ----------------------------------------------------------------------------------------------------
 
     def generate_body_preamble(self):
-        basenames = ", ".join(self.input_files_basenames)
-        self.outfile.write(LICENSE_STR.format(config.VERSION, basenames))
+        self.outfile.write(LICENSE_STR)
         if self.symbol_decoration_define is not None:
             self.outfile.write("\n")
             self.outfile.write("#define %s\n" % self.symbol_decoration_define)
openSUSE Build Service is sponsored by