mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-09 06:04:12 +00:00
Showing download sources argument in mirror show and mirror list.
This commit is contained in:
Vendored
+9
-1
@@ -86,7 +86,15 @@ func (repo *RemoteRepo) prepare() error {
|
||||
|
||||
// String interface
|
||||
func (repo *RemoteRepo) String() string {
|
||||
return fmt.Sprintf("[%s]: %s %s", repo.Name, repo.ArchiveRoot, repo.Distribution)
|
||||
srcFlag := ""
|
||||
if repo.DownloadSources {
|
||||
srcFlag = " [src]"
|
||||
}
|
||||
distribution := repo.Distribution
|
||||
if distribution == "" {
|
||||
distribution = "./"
|
||||
}
|
||||
return fmt.Sprintf("[%s]: %s %s%s", repo.Name, repo.ArchiveRoot, distribution, srcFlag)
|
||||
}
|
||||
|
||||
// IsFlat determines if repository is flat
|
||||
|
||||
Reference in New Issue
Block a user