From 99ce889308d228151ccb69cf01dbe98b3f6fd6d9 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Mon, 18 Nov 2019 09:43:37 -0600 Subject: [PATCH] iiab-update-map - pylint3 says unused --- roles/osm-vector-maps/tasks/main.yml | 21 +++++++++---------- .../osm-vector-maps/templates/iiab-update-map | 4 ++-- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/roles/osm-vector-maps/tasks/main.yml b/roles/osm-vector-maps/tasks/main.yml index 83cce8ea3..c698e3644 100644 --- a/roles/osm-vector-maps/tasks/main.yml +++ b/roles/osm-vector-maps/tasks/main.yml @@ -35,19 +35,18 @@ dest: '{{ vector_map_path }}/maplist/assets/' # REMOVE this stanza once the transition to Python 3 is confirmed -- name: Install python-geojson package (OS's prior to Ubuntu 19.10) - package: - name: python-geojson - state: present - when: is_raspbian_9 or is_raspbian_10 or is_ubuntu_16 or is_ubuntu_18 or is_debian_9 or is_debian_10 +#- name: Install python-geojson package (OS's prior to Ubuntu 19.10) +# package: +# name: python-geojson +# state: present +# when: is_raspbian_9 or is_raspbian_10 or is_ubuntu_16 or is_ubuntu_18 or is_debian_9 or is_debian_10 # 2019-10-19: Above python-geojson does not exist on Ubuntu 19.10, so let's -# begin the transition to Python 3... - -- name: Install python3-geojson package (especially for new OS's like Ubuntu 19.10+) - package: - name: python3-geojson # 2019-10-19: available across most/all recent - state: present # OS's, but not yet used by osm-vector-maps code? +# begin the transition to Python 3... currently unused +#- name: Install python3-geojson package (especially for new OS's like Ubuntu 19.10+) +# package: +# name: python3-geojson # 2019-10-19: available across most/all recent +# state: present # OS's, but not yet used by osm-vector-maps code? - name: Install /usr/bin/iiab-update-map for updating of Map Pack catalog & descriptions template: diff --git a/roles/osm-vector-maps/templates/iiab-update-map b/roles/osm-vector-maps/templates/iiab-update-map index baacd922e..8f18bb4af 100755 --- a/roles/osm-vector-maps/templates/iiab-update-map +++ b/roles/osm-vector-maps/templates/iiab-update-map @@ -1,8 +1,8 @@ #!/usr/bin/python3 # Scan the osm-vector-maps directory, update the osm-vector-maps-idx.json, add menu-defs -from geojson import Feature, Point, FeatureCollection, Polygon -import geojson +#from geojson import Feature, Point, FeatureCollection, Polygon +#import geojson import json import os import sys