Louis-Philippe Véronneau pushed to branch master at lintian / lintian
Commits:
7a2dbe28 by Nilesh Patra at 2025-09-18T01:12:10+05:30
Change regex for yaml parsing after appstreamcli output
The "Passed: no" changed to strings with quotes around them
The output changed to the following with appstream 1.1.0:
---
{
'File': 'appstream-metadata.metadata.xml',
'Validator': '1.1.0',
'Issues': [
{
'tag': 'developer-info-missing',
'severity': 'info',
'component': 'org.debian.lintian.check.appstream.udev',
'explanation': 'This component contains no `developer` element with
information about its author.'
},
{
'tag': 'metainfo-filename-cid-mismatch',
'severity': 'warning',
'component': 'org.debian.lintian.check.appstream.udev',
'explanation': 'The metainfo filename does not match the component ID.'
}],
'Passed': 'no'
}
It was this with appstream 1.0.6-2:
---
File: appstream-metadata.metadata.xml
Validator: 1.0.5
Issues:
- tag: developer-info-missing
severity: info
component: org.debian.lintian.check.appstream.udev
explanation: >-
This component contains no `developer` element with information about its
author.
- tag: metainfo-filename-cid-mismatch
severity: warning
component: org.debian.lintian.check.appstream.udev
explanation: >-
The metainfo filename does not match the component ID.
Passed: no
- - - - -
1 changed file:
- lib/Lintian/Check/AppstreamMetadata.pm
Changes:
=====================================
lib/Lintian/Check/AppstreamMetadata.pm
=====================================
@@ -88,7 +88,7 @@ sub installable {
system('appstreamcli', 'validate-tree', '--format=yaml',
'--no-net', $basedir);
};
- if ($output =~ m/Passed: no/) {
+ if ($output =~ m/'?Passed'?: '?no'?/) {
my @yaml = YAML::XS::Load($output);
die
unless @yaml;
View it on GitLab:
https://salsa.debian.org/lintian/lintian/-/commit/7a2dbe285785547681adff575a4a81a05964da17
--
View it on GitLab:
https://salsa.debian.org/lintian/lintian/-/commit/7a2dbe285785547681adff575a4a81a05964da17
You're receiving this email because of your account on salsa.debian.org.