summaryrefslogtreecommitdiff
path: root/src/verbs/sync.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/verbs/sync.py')
-rw-r--r--src/verbs/sync.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/verbs/sync.py b/src/verbs/sync.py
index 85e3623..38a8a39 100644
--- a/src/verbs/sync.py
+++ b/src/verbs/sync.py
@@ -47,12 +47,13 @@ def validate_package(package, versions, repo, verbose=False):
popularity[checksum] = 0
popularity[checksum] += 1
- most_popular = sorted(popularity)[0]
+ most_popular = sorted(popularity)[-1]
+ sources = [v[1] for v in versions if v[0] == most_popular]
# change the packages dict to list all the sources
return {
"checksum": most_popular,
- "sources" : [v[1] for v in versions if v[0] == most_popular]
+ "sources" : sources
}
def save_package(package, info, location):