#78 Fix packager identity detection to use fallbacks properly
Merged 4 years ago by ngompa. Opened 4 years ago by ngompa.

file modified
+3 -1
@@ -310,7 +310,9 @@ 

          kwargs["date"] = time.strftime("%a %b %d %T %Z %Y")

      else:

          kwargs["date"] = time.strftime("%a %b %d %Y")

-     kwargs["packager"] = detect_packager()

+     packager_identity = detect_packager()

+     if packager_identity is not None:

+         kwargs["packager"] = packager_identity

  

      if metadata.license is not None:

          license, comments = licensing.translate_license(args.target, metadata.license)

Setting 'None' to the 'packager' field caused generated
spec files to have the packager identity of "None" instead
of using the fallbacks as specified in the spec template.

This adjustment makes the spec template fallbacks for the
packager identity work as expected.

Fixes #73.

Signed-off-by: Neal Gompa ngompa13@gmail.com

Metadata Update from @ngompa:
- Request assigned

4 years ago

Looks sensible, LGTM :D

Pull-Request has been merged by ngompa

4 years ago
Metadata