← Back to issue list

appstream extractor should search valid directories

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1778699
Type
issue
State
open
Author
~apachelogger
Labels
19.04 19.04-blue 19.04-external
Created
Updated
Closed

Current evaluation

Feature request from 2018 asking the appstream extractor to search standard directories (usr/share/appinfo, usr/share/metainfo, PWD) instead of requiring full paths in parse-info. Still open with zero comments and no maintainer engagement; current code still takes a full relative path.

Suggested action: needs triage

Reason: The issue is 8 years old with zero comments and no labels beyond release tags, showing no maintainer assessment. The requested behavior is not implemented — snapcraft/meta/appstream.py extract() still requires a full relative path via os.path.join(workdir, relpath) with no directory search. It's a valid feature request but needs triage to decide whether to implement or close as stale.

Impact: 25 Quick Win: 16.25 Staleness: 95 Complexity: 35 Confidence: 75 Support Request: 10

Issue body

Currently the appstream extractor requires `parse-info` to contain the complete path for appstream files. This is excessively repetitive and useless information as there are only two well defined directories where the files may be located. Should that change in the future it also means every developer needs to update the paths instead of snapcraft doing it once for everyone by updating the search paths there. It would be far superior if the developer specified `org.example.foo.appdata.xml` and the extractor looked for that file in $stage/usr/share/{appinfo,metainfo}/ and relative to snapcraft PWD.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 25
Quick Win: 16.25
Staleness: 95
Complexity: 35
Confidence: 75
Support Request: 10
needs triage Feature request from 2018 asking the appstream extractor to search standard directories (usr/share/appinfo, usr/share/metainfo, PWD) instead of requiring full paths in parse-info. Still open with zero comments and no maintainer engagement; current code still takes a full relative path.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 25
Confidence: 85
Support Request: 10
close stale Feature request to auto-search standard directories for appstream files instead of requiring full paths. Issue is 8 years old, has zero comments, and shows no maintainer engagement or implementation progress.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 25
Confidence: 90
Support Request: 10
close stale Feature request to make the appstream extractor automatically search standard directories for appstream files instead of requiring full paths. Untriaged and inactive for over 8 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 20
Confidence: 90
Support Request: 10
close stale Feature request to make the appstream extractor automatically search standard directories for appstream files instead of requiring full paths. Untriaged and inactive for over 8 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 25
Confidence: 90
Support Request: 15
close stale Feature request to improve appstream extractor path resolution by searching standard directories instead of requiring full paths. Issue is over 8 years old with no maintainer interaction.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.