mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-22 11:11:25 +01:00
Fix '-force' target generation for JSON schemata.
In some environments, a variable-existence test in a template was yielding a false negative which resulted in the template not generating '-force' targets for API JSON files, even when the `FETCH_APIS` environment variable was set during template rendering. This commit adjusts the way the test for the variable presence is done such that the '-force' targets now render when they should.
This commit is contained in:
committed by
Sebastian Thiel
parent
5e5327f3f7
commit
6ad88cb773
@@ -7,6 +7,7 @@
|
||||
import urllib2
|
||||
import json
|
||||
|
||||
apis = {}
|
||||
api_info = []
|
||||
doc_root = directories.output + '/' + directories.doc_subdir
|
||||
doc_index = doc_root + '/index.html'
|
||||
@@ -184,7 +185,7 @@ help${agsuffix}:
|
||||
% if global_targets:
|
||||
.PHONY += update-json
|
||||
|
||||
% for info in ('apis' in globals() and apis.get('items') or []):
|
||||
% for info in (apis.get('items') or []):
|
||||
<%
|
||||
import util
|
||||
import os
|
||||
|
||||
Reference in New Issue
Block a user