mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-27 13:57:46 +00:00
Add -json flag to snapshot show|list
Signed-off-by: Joshua Colson <joshua.colson@gmail.com>
This commit is contained in:
committed by
Lorenzo Bolla
parent
f9c0d99790
commit
0f1575d5af
+13
@@ -266,6 +266,19 @@ func (l *PackageList) Strings() []string {
|
||||
return result
|
||||
}
|
||||
|
||||
// FullNames builds a list of package {name}_{version}_{arch}
|
||||
func (l *PackageList) FullNames() []string {
|
||||
result := make([]string, l.Len())
|
||||
i := 0
|
||||
|
||||
for _, p := range l.packages {
|
||||
result[i] = p.GetFullName()
|
||||
i++
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
// depSliceDeduplicate removes dups in slice of Dependencies
|
||||
func depSliceDeduplicate(s []Dependency) []Dependency {
|
||||
l := len(s)
|
||||
|
||||
Reference in New Issue
Block a user