summarylogtreecommitdiffstats
path: root/checkver.py
diff options
context:
space:
mode:
Diffstat (limited to 'checkver.py')
-rwxr-xr-xcheckver.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/checkver.py b/checkver.py
new file mode 100755
index 00000000000..e7fe770fa1a
--- /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