ROOT = $(shell realpath ..)
SITE = DEV
-WEB_CONTROL_PATH = http://localhost/control/
+WEB_CONTROL_PATH = http://xenrt.citrite.net/xenrt
GITPATH = git@gitlab.citrite.net:xenrt
PRODUCTIONCONFIG = no
def isUrlFetchable(filename):
xenrt.TEC().logverbose("Attempting to check response for %s" % filename)
try:
- r = requests.head(filename, allow_redirects=True)
+ proxy = xenrt.TEC().lookup("HTTP_PROXY", None)
+ kwargs = {}
+ if proxy:
+ kwargs['proxies'] = {"http": proxy, "https": proxy}
+ r = requests.head(filename, allow_redirects=True, **kwargs)
return (r.status_code == 200)
except:
return False