Check architectures before applying arch change. #99

This commit is contained in:
Andrey Smirnov
2014-08-29 00:52:47 +04:00
parent 755944652f
commit 72f8e4ab61
+6 -1
View File
@@ -37,6 +37,11 @@ func aptlyMirrorEdit(cmd *commander.Command, args []string) error {
if context.globalFlags.Lookup("architectures").Value.String() != "" {
repo.Architectures = context.ArchitecturesList()
err = repo.Fetch(context.Downloader(), nil)
if err != nil {
return fmt.Errorf("unable to edit: %s", err)
}
}
err = context.CollectionFactory().RemoteRepoCollection().Update(repo)
@@ -55,7 +60,7 @@ func makeCmdMirrorEdit() *commander.Command {
Short: "edit properties of mirorr",
Long: `
Command edit allows to change settings of mirror:
filters.
filters, list of architectures.
Example: