Skip to content

Commit

Permalink
validation: Drop metainfo checks
Browse files Browse the repository at this point in the history
  • Loading branch information
barthalion committed Oct 7, 2023
1 parent 83d4dab commit 9c91c25
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/review/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,29 +56,12 @@ pub fn validate_primary_ref<C: ValidateConfig>(

let mut diagnostics = vec![];

/* Check for a local 128x128 icon. If it's not present, the appstream files must contain a remote icon. */
let has_local_icon = ref_files
.resolve_relative_path(format!(
"files/share/app-info/icons/flatpak/128x128/{app_id}.png"
))
.query_exists(Cancellable::NONE);

/* Validate the input appstream files. Check both the current and legacy paths. */
diagnostics.extend(validate_appstream_file(
repo,
checksum,
refstring,
&format!("files/share/appdata/{app_id}.appdata.xml"),
has_local_icon,
)?);
diagnostics.extend(validate_appstream_file(
repo,
checksum,
refstring,
&format!("files/share/metainfo/{app_id}.metainfo.xml"),
has_local_icon,
)?);

/* Validate the appstream catalog file. This is the one that shows up on the website and in software centers.
(The other ones are exported to the user's system.) */
diagnostics.extend(validate_appstream_catalog_file(
Expand Down

0 comments on commit 9c91c25

Please sign in to comment.