public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/fedora-appstream-metadata] rawhide: update-appstream-metadata: Relax entry type check
Date: Fri, 02 Oct 2026 09:36:41 GMT	[thread overview]
Message-ID: <179093380176.1.15127637420771722951.rpms-fedora-appstream-metadata-98ba5c62ad7f@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/fedora-appstream-metadata
            Branch : rawhide
            Commit : 98ba5c62ad7f6acba289b9a70aff9dcb880672fc
            Author : Timothée Ravier <tim@siosm.fr>
            Date   : 2026-10-02T11:35:21+02:00
            Stats  : +1/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/fedora-appstream-metadata/c/98ba5c62ad7f6acba289b9a70aff9dcb880672fc?branch=rawhide

            Log:
            update-appstream-metadata: Relax entry type check

For F44, the Current Final Target date is a Task, not a Milestone.

---
diff --git a/update-appstream-metadata.go b/update-appstream-metadata.go
index e7b0662..06c3b1c 100644
--- a/update-appstream-metadata.go
+++ b/update-appstream-metadata.go
@@ -178,7 +178,7 @@ func isValidURL(url string) bool {
 
 func getStartDateRecursive(tasks []Tasks) string {
 	for _, t := range tasks {
-		if t.Name == "Current Final Target date" && t.Type == "Milestone" {
+		if t.Name == "Current Final Target date" && (t.Type == "Milestone" || t.Type == "Task") {
 			res, err := strconv.Atoi(t.Start)
 			if err != nil {
 				log.Fatal(err)

                 reply	other threads:[~2026-10-02  9:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179093380176.1.15127637420771722951.rpms-fedora-appstream-metadata-98ba5c62ad7f@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox