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

Commit

Permalink
Update packages.xml URL so requests arent routed through Cloudflare. F…
Browse files Browse the repository at this point in the history
…ixes #702
  • Loading branch information
lots0logs committed Feb 4, 2017
1 parent c8cfab0 commit 6f6a173
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cnchi/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.237"
CNCHI_VERSION = "0.14.239"
CNCHI_WEBSITE = "http://www.antergos.com"
CNCHI_RELEASE_STAGE = "production"

Expand Down
5 changes: 3 additions & 2 deletions cnchi/installation/select_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
import hardware.hardware as hardware

DEST_DIR = "/install"
PKGLIST_URL = 'http://install.antergos.com/'
PKGLIST_URL = 'https://raw.githubusercontent.com/Antergos/Cnchi/master/data/packages.xml'


def write_file(filecontents, filename):
Expand Down Expand Up @@ -198,7 +198,8 @@ def select_packages(self):
self.queue_event('info', _("Getting package list..."))

try:
url = '{0}packages-{1}.xml'.format(PKGLIST_URL, info.CNCHI_VERSION.rsplit('.')[-2])
# url = '{0}packages-{1}.xml'.format(PKGLIST_URL, info.CNCHI_VERSION.rsplit('.')[-2])
url = PKGLIST_URL
logging.debug("Getting url %s...", url)
req = requests.get(url, headers={'User-Agent': 'Mozilla/5.0'})
packages_xml_data = req.content
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.237","files":[
{"version":"0.14.239","files":[
]}

0 comments on commit 6f6a173

Please sign in to comment.