#29 Only write the License tag if it is set.
Merged 2 years ago by jhutar. Opened 2 years ago by dcantrell.
dcantrell/rpmfluff master  into  master

file modified
+2 -1
@@ -827,7 +827,8 @@ 

              specFile.write("Epoch: %s\n"%self.epoch)

          specFile.write("Version: %s\n"%self.version)

          specFile.write("Release: %s\n"%self.release)

-         specFile.write("License: %s\n"%self.license)

+         if self.license:

+             specFile.write("License: %s\n"%self.license)

          specFile.write("Group: %s\n"%self.basePackage.group)

          if self.vendor:

              specFile.write("Vendor: %s\n"%self.vendor)

This allows setting self.license to None to prevent the addition of the License tag to the RPM file.

I use this functionality to test the license tag inspection in rpminspect.

Pull-Request has been merged by jhutar

2 years ago