Add ability to edit mirror architectures

This commit is contained in:
Vincent Batoufflet
2014-08-26 23:22:51 +02:00
parent 346a7bcce9
commit f66302ef31
+4
View File
@@ -35,6 +35,10 @@ func aptlyMirrorEdit(cmd *commander.Command, args []string) error {
}
}
if context.globalFlags.Lookup("architectures").Value.String() != "" {
repo.Architectures = context.ArchitecturesList()
}
err = context.CollectionFactory().RemoteRepoCollection().Update(repo)
if err != nil {
return fmt.Errorf("unable to edit: %s", err)