Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
Avoid duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
karasu committed Sep 8, 2018
1 parent c326a2e commit 0dd7b1b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You are viewing the `0.15.x` branch (development).
|Development Stage|Branch|Version| Code Status|
----------------- | -------------- | -------------- | -------- |
|Cnchi Stable|0.14.x|![0.14.473](https://img.shields.io/github/release/antergos/cnchi.svg)|Frozen|
|Cnchi Development|0.15.x|![0.15.346](https://img.shields.io/github/release/antergos/cnchi/all.svg)|Development|
|Cnchi Development|0.15.x|![0.15.347](https://img.shields.io/github/release/antergos/cnchi/all.svg)|Development|
|Cnchi Next (UI agnostic)|master|0.17.x|Development|

## Usage:
Expand Down
2 changes: 1 addition & 1 deletion src/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

""" Set some Cnchi global constants """

CNCHI_VERSION = "0.15.346"
CNCHI_VERSION = "0.15.347"
""" Cnchi version """

CNCHI_WEBSITE = "http://www.antergos.com"
Expand Down
5 changes: 4 additions & 1 deletion src/rank_mirrors.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,15 @@ def get_mirror_stats(self):
except KeyError as err:
logging.warning('Failed to parse retrieved mirror data: %s', err)

mirror_urls = []
for mirror in self.data['antergos']['entries']:
title = mirror['title']
if "is UP" in title:
# In RSS, all mirrors are in http:// format, we prefer https://
mirror['url'] = mirror['link'].replace('http://', 'https://')
mirrors['antergos'].append(mirror)
if mirror['url'] not in mirror_urls:
mirrors['antergos'].append(mirror)
mirror_urls.append(mirror['url'])

return mirrors

Expand Down
2 changes: 1 addition & 1 deletion update.info
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{"version":"0.15.346","files":[
{"version":"0.15.347","files":[
]}

0 comments on commit 0dd7b1b

Please sign in to comment.