diff options
author | Christoph Haag | 2016-02-12 10:42:52 +0100 |
---|---|---|
committer | Christoph Haag | 2016-02-12 10:42:52 +0100 |
commit | e59d0c7cc45207f9ae45595a9b13e7a47bbbca31 (patch) | |
tree | 8c62837792b1cc412686a1ab65d40342e113dc3c /checkver.py | |
download | aur-e59d0c7cc45207f9ae45595a9b13e7a47bbbca31.tar.gz |
initial
Diffstat (limited to 'checkver.py')
-rwxr-xr-x | checkver.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/checkver.py b/checkver.py new file mode 100755 index 000000000000..e7fe770fa1af --- /dev/null +++ b/checkver.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python3 +import http.client,datetime + +tempdate = datetime.date.today() +timedelta = datetime.timedelta(days=1) +url = "c591116.r16.cf2.rackcdn.com" +requrl = "/ekopath/nightly/Linux/" + +while(True): + conn = http.client.HTTPConnection(url) + filename = "ekopath-" + tempdate.strftime("%Y-%m-%d") + "-installer.run" + req = conn.request("HEAD", requrl + filename) + resp = conn.getresponse() + conn.close() + if resp.status == 200: + print("http://" + url + requrl + filename) + break + tempdate -= timedelta |