Skip to content

Commit

Permalink
Revert "Drop unneeded AppStream backwards compatibility"
Browse files Browse the repository at this point in the history
This reverts commit a7a9870.
  • Loading branch information
barthalion committed Mar 2, 2024
1 parent 8b838bb commit 38ab5f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cmd_publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,11 @@ pub fn rewrite_appstream_xml(
let custom = find_or_create_element(component, "custom", None);
find_or_create_element(custom, "value", Some(("key", key))).set_text(value);

// the <metadata> element isn't compliant with appstream
// leaving for backwards compatibility with older GNOME Software releases
let metadata = find_or_create_element(component, "metadata", None);
find_or_create_element(metadata, "value", Some(("key", key))).set_text(value);

changed = true;
}
};
Expand Down

0 comments on commit 38ab5f9

Please sign in to comment.