mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
make migration more resilient
This commit is contained in:
@@ -72,6 +72,11 @@ impl VersionT for Version {
|
|||||||
{
|
{
|
||||||
if let Some(url) = url_replacements.get(&dependency) {
|
if let Some(url) = url_replacements.get(&dependency) {
|
||||||
info.as_icon_mut().ser(url)?;
|
info.as_icon_mut().ser(url)?;
|
||||||
|
} else {
|
||||||
|
info.as_icon_mut().ser(&DataUrl::from_slice(
|
||||||
|
"image/png",
|
||||||
|
include_bytes!("../install/package-icon.png"),
|
||||||
|
))?;
|
||||||
}
|
}
|
||||||
let manifest = <&mut Value>::from(&mut *info)
|
let manifest = <&mut Value>::from(&mut *info)
|
||||||
.as_object_mut()
|
.as_object_mut()
|
||||||
@@ -84,6 +89,8 @@ impl VersionT for Version {
|
|||||||
.map(|s| s.to_owned())
|
.map(|s| s.to_owned())
|
||||||
{
|
{
|
||||||
info.as_title_mut().ser(&title)?;
|
info.as_title_mut().ser(&title)?;
|
||||||
|
} else {
|
||||||
|
info.as_title_mut().ser(&dependency.to_string())?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user