mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
fixes apt-update issue 100 where Suites changed, kills update sound t… (#422)
* fixes apt-update issue 100 where Suites changed, kills update sound thread, sets updating to false if synchronization fails * cleans up code * appmgr changes * ui changes * updates required appmgr in agent * actually upgrade current version in appmgr
This commit is contained in:
committed by
GitHub
parent
18a069e6fd
commit
183f91859a
@@ -32,8 +32,9 @@ mod v0_2_12;
|
||||
mod v0_2_13;
|
||||
mod v0_2_14;
|
||||
mod v0_2_15;
|
||||
mod v0_2_16;
|
||||
|
||||
pub use v0_2_15::Version as Current;
|
||||
pub use v0_2_16::Version as Current;
|
||||
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[serde(untagged)]
|
||||
@@ -61,6 +62,7 @@ enum Version {
|
||||
V0_2_13(Wrapper<v0_2_13::Version>),
|
||||
V0_2_14(Wrapper<v0_2_14::Version>),
|
||||
V0_2_15(Wrapper<v0_2_15::Version>),
|
||||
V0_2_16(Wrapper<v0_2_16::Version>),
|
||||
Other(emver::Version),
|
||||
}
|
||||
|
||||
@@ -178,6 +180,7 @@ pub async fn init() -> Result<(), failure::Error> {
|
||||
Version::V0_2_13(v) => v.0.migrate_to(&Current::new()).await?,
|
||||
Version::V0_2_14(v) => v.0.migrate_to(&Current::new()).await?,
|
||||
Version::V0_2_15(v) => v.0.migrate_to(&Current::new()).await?,
|
||||
Version::V0_2_16(v) => v.0.migrate_to(&Current::new()).await?,
|
||||
Version::Other(_) => (),
|
||||
// TODO find some way to automate this?
|
||||
}
|
||||
@@ -274,6 +277,7 @@ pub async fn self_update(requirement: emver::VersionRange) -> Result<(), Error>
|
||||
Version::V0_2_13(v) => Current::new().migrate_to(&v.0).await?,
|
||||
Version::V0_2_14(v) => Current::new().migrate_to(&v.0).await?,
|
||||
Version::V0_2_15(v) => Current::new().migrate_to(&v.0).await?,
|
||||
Version::V0_2_16(v) => Current::new().migrate_to(&v.0).await?,
|
||||
Version::Other(_) => (),
|
||||
// TODO find some way to automate this?
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user