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

Commit

Permalink
Fix bug in mirrors.py
Browse files Browse the repository at this point in the history
  • Loading branch information
karasu committed Sep 4, 2018
1 parent 85a9f65 commit de2cd05
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
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.14.475"
CNCHI_VERSION = "0.14.476"
CNCHI_WEBSITE = "http://www.antergos.com"
CNCHI_RELEASE_STAGE = "production"

Expand Down
5 changes: 3 additions & 2 deletions src/pages/mirrors.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,9 @@ def on_drag_data_received(self, widget, _drag_context, _x, _y, selection_data, _
logging.warning(err)

def trim_mirror_url(self, url):
url = url.ltrim("Server = ")
url = url.rtrim("/$repo/os/$arch")
""" Get mirror url from mirror line in mirror's list """
url = url.replace("Server = ", "")
url = url.replace("/$repo/os/$arch", "")
return url

def save_changes(self, use_rankmirrors=False):
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.14.475","files":[
{"version":"0.14.476","files":[
]}

0 comments on commit de2cd05

Please sign in to comment.