mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-20 10:57:09 +00:00
snapshot: newest -> latest
This commit is contained in:
1 parent
60d48e890c
commit
133d67bffa
2 files changed
+5
-5
No files matched your search
@@ -28,12 +28,12 @@ func aptlySnapshotMerge(cmd *commander.Command, args []string) error {
|
||||
}
|
||||
}
|
||||
|
||||
newest := context.flags.Lookup("newest").Value.Get().(bool)
|
||||
latest := context.flags.Lookup("latest").Value.Get().(bool)
|
||||
|
||||
result := sources[0].RefList()
|
||||
|
||||
for i := 1; i < len(sources); i++ {
|
||||
if newest {
|
||||
if latest {
|
||||
result = result.Merge(sources[i].RefList(), false, true)
|
||||
} else {
|
||||
result = result.Merge(sources[i].RefList(), true, false)
|
||||
@@ -77,7 +77,7 @@ Example:
|
||||
`,
|
||||
}
|
||||
|
||||
cmd.Flag.Bool("newest", false, "Take newest package of set during merge")
|
||||
cmd.Flag.Bool("latest", false, "Use only the latest version of all packages")
|
||||
|
||||
return cmd
|
||||
}
|
||||
Reference in new issue
Block a user