diff --git a/boulder/data/profile.d/default-x86_64.yaml b/boulder/data/profile.d/default-x86_64.yaml index 3d7b6bdc..fe519ec5 100644 --- a/boulder/data/profile.d/default-x86_64.yaml +++ b/boulder/data/profile.d/default-x86_64.yaml @@ -1,16 +1,16 @@ default-x86_64: - collections: - volatile: - uri: "https://dev.serpentos.com/volatile/x86_64/stone.index" - description: "Volatile moss repo" - priority: 0 + repositories: + volatile: + uri: "https://dev.serpentos.com/volatile/x86_64/stone.index" + description: "Volatile moss repo" + priority: 0 local-x86_64: - collections: - volatile: - uri: "https://dev.serpentos.com/volatile/x86_64/stone.index" - description: "Volatile moss repo" - priority: 0 - local: - uri: "file:///var/cache/boulder/repos/local-x86_64/stone.index" - description: "Local development moss repo" - priority: 10 + repositories: + volatile: + uri: "https://dev.serpentos.com/volatile/x86_64/stone.index" + description: "Volatile moss repo" + priority: 0 + local: + uri: "file:///var/cache/boulder/repos/local-x86_64/stone.index" + description: "Local development moss repo" + priority: 10 diff --git a/boulder/src/cli/profile.rs b/boulder/src/cli/profile.rs index 74b6c4e5..eb903c15 100644 --- a/boulder/src/cli/profile.rs +++ b/boulder/src/cli/profile.rs @@ -96,7 +96,7 @@ pub fn list(manager: profile::Manager) -> Result<(), Error> { println!("{id}:"); for (id, repo) in profile - .collections + .repositories .iter() .sorted_by(|(_, a), (_, b)| a.priority.cmp(&b.priority).reverse()) { @@ -118,7 +118,7 @@ pub fn add<'a>( manager.save_profile( id.clone(), Profile { - collections: repository::Map::with(repos), + repositories: repository::Map::with(repos), }, )?; diff --git a/boulder/src/profile.rs b/boulder/src/profile.rs index 6eacb8a9..3e4b3c7a 100644 --- a/boulder/src/profile.rs +++ b/boulder/src/profile.rs @@ -38,7 +38,7 @@ impl From for Id { /// Profile configuration data #[derive(Debug, Clone, Serialize, Deserialize)] pub struct Profile { - pub collections: repository::Map, + pub repositories: repository::Map, } /// A map of profiles @@ -106,7 +106,7 @@ impl<'a> Manager<'a> { pub fn repositories(&self, profile: &Id) -> Result<&repository::Map, Error> { self.profiles .get(profile) - .map(|profile| &profile.collections) + .map(|profile| &profile.repositories) .ok_or_else(|| Error::MissingProfile(profile.clone())) }