mirror of
https://github.com/Momoko-Ayase/Senbei.git
synced 2026-11-25 10:52:47 +08:00
fix(android): report the version of embedded metadata
The metadata a restored library carried was reported with no version, so its entry read metadata_version null in --json and showed no version in the text report. The entry now takes the version from the blob's header.
This commit is contained in:
1 parent
7a1f3c52d5
commit
7ab381438f
1 file changed
+2
-1
@@ -1625,7 +1625,8 @@ fn restore_package_entry<R: Read + Seek, T: context::LibraryRestorer>(
|
|||||||
status: EntryStatus::Restored,
|
status: EntryStatus::Restored,
|
||||||
provenance: Vec::new(),
|
provenance: Vec::new(),
|
||||||
layout: None,
|
layout: None,
|
||||||
metadata_version: None,
|
metadata_version: senbei_metadata::identify(blob)
|
||||||
|
.map(|identity| identity.raw_version),
|
||||||
validation: None,
|
validation: None,
|
||||||
research: None,
|
research: None,
|
||||||
metadata_research: None,
|
metadata_research: None,
|
||||||
|
|||||||
Reference in new issue
Block a user