mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-22 11:08:20 +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
+2
-2
@@ -296,8 +296,8 @@ func (l *PackageRefList) Merge(r *PackageRefList, overrideMatching bool,
|
||||
nameL, archL, verL := partsL[0][1:], partsL[1], partsL[2]
|
||||
pkgL := string(nameL) + "." + string(archL)
|
||||
|
||||
// If we've already seen this package, regardless of version,
|
||||
// just skip it.
|
||||
// If we've already seen this package, check if this version is
|
||||
// newer. If it is, replace the older ref.
|
||||
if _, ok := refs[pkgL]; ok {
|
||||
vres := CompareVersions(string(verL), string(refs[pkgL]))
|
||||
if vres <= 0 {
|
||||
|
||||
Reference in new issue
Block a user