Support for filters in mirror create/update/show. #64

This commit is contained in:
Andrey Smirnov
2014-07-16 13:28:11 +04:00
parent ce1df9447d
commit fe1046a7a3
3 changed files with 34 additions and 1 deletions
+8
View File
@@ -37,6 +37,14 @@ func aptlyMirrorShow(cmd *commander.Command, args []string) error {
downloadSources = "yes"
}
fmt.Printf("Download Sources: %s\n", downloadSources)
if repo.Filter != "" {
fmt.Printf("Filter: %s\n", repo.Filter)
filterWithDeps := "no"
if repo.FilterWithDeps {
filterWithDeps = "yes"
}
fmt.Printf("Filter With Deps: %s\n", filterWithDeps)
}
if repo.LastDownloadDate.IsZero() {
fmt.Printf("Last update: never\n")
} else {