Skip to content

Commit

Permalink
fix(rust): run pre-scripts before selecting the product
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Oct 18, 2024
1 parent 1ebaab2 commit 7e4131a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust/agama-lib/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ impl Store {
if let Some(network) = &settings.network {
self.network.store(network).await?;
}
if let Some(scripts) = &settings.scripts {
self.scripts.store(scripts).await?;
}
// order is important here as network can be critical for connection
// to registration server and selecting product is important for rest
if let Some(product) = &settings.product {
self.product.store(product).await?;
}
if let Some(scripts) = &settings.scripts {
self.scripts.store(scripts).await?;
}
// ordering: localization after product as some product may miss some locales
if let Some(localization) = &settings.localization {
self.localization.store(localization).await?;
Expand Down

0 comments on commit 7e4131a

Please sign in to comment.