From 42ceabc905dae250643079ad8b3ce6e35eea06ca Mon Sep 17 00:00:00 2001 From: Ilya Zverev Date: Mon, 20 Mar 2017 15:51:59 +0300 Subject: [build] Fix cmake in build_omim and error detection in booking_hotels --- tools/python/booking_hotels.py | 2 +- tools/unix/build_omim.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/python/booking_hotels.py b/tools/python/booking_hotels.py index ef58443180..20950706af 100755 --- a/tools/python/booking_hotels.py +++ b/tools/python/booking_hotels.py @@ -60,7 +60,7 @@ class BookingApi: stream = urllib2.urlopen(request) payload = stream.read() data = json.loads(payload) - if isinstance(data, dict) and 'ruid' in data: + if isinstance(data, dict) and 'message' in data and 'code' in data: logging.error('Api call failed with error: {0} Code: {1}'.format(data['message'], data['code'])) return None return data diff --git a/tools/unix/build_omim.sh b/tools/unix/build_omim.sh index 1305c38bae..6282a34a51 100755 --- a/tools/unix/build_omim.sh +++ b/tools/unix/build_omim.sh @@ -57,9 +57,9 @@ fi # Find qmake, prefer qmake-qt5 source "$OMIM_PATH/tools/autobuild/detect_qmake.sh" -# Find cmake, prefer cmake28 +# Find cmake, prefer cmake3 if [ ! -x "${CMAKE-}" ]; then - CMAKE=cmake28 + CMAKE=cmake3 if ! hash "$CMAKE" 2>/dev/null; then CMAKE=cmake fi @@ -113,11 +113,11 @@ build_conf_osrm() export BOOST_INCLUDEDIR="$BOOST_PATH/include" cd "$DIRNAME" - if [[ -z ${CMAKE_OMIM+x} ]]; then + if [[ -n "${USE_CMAKE-}" ]]; then DIRNAME="$DIRNAME/out/$CONF" mkdir -p "$DIRNAME" cd "$DIRNAME" - cmake "$OMIM_PATH" + "$CMAKE" "$OMIM_PATH" make routing routing_common indexer geometry coding base jansson -j $PROCESSES else "$QMAKE" "$OMIM_PATH/omim.pro" ${SPEC:+-spec $SPEC} "CONFIG+=$CONF osrm no-tests" ${CONFIG+"CONFIG*=$CONFIG"} -- cgit v1.2.3