MCPcopy Index your code
hub / github.com/aptly-dev/aptly / String

Method String

deb/remote.go:147–166  ·  view source on GitHub ↗

String interface

()

Source from the content-addressed store, hash-verified

145
146// String interface
147func (repo *RemoteRepo) String() string {
148 srcFlag := ""
149 if repo.DownloadSources {
150 srcFlag += " [src]"
151 }
152 if repo.DownloadUdebs {
153 srcFlag += " [udeb]"
154 }
155 if repo.DownloadInstaller {
156 srcFlag += " [installer]"
157 }
158 if repo.DownloadAppStream {
159 srcFlag += " [appstream]"
160 }
161 distribution := repo.Distribution
162 if distribution == "" {
163 distribution = "./"
164 }
165 return fmt.Sprintf("[%s]: %s %s%s", repo.Name, repo.ArchiveRoot, distribution, srcFlag)
166}
167
168// IsFlat determines if repository is flat
169func (repo *RemoteRepo) IsFlat() bool {

Callers 3

TestAddByNameMethod · 0.95
TestByUUIDMethod · 0.95
TestDropMethod · 0.95

Calls

no outgoing calls

Tested by 3

TestAddByNameMethod · 0.76
TestByUUIDMethod · 0.76
TestDropMethod · 0.76