Changeset 13931 in josm for trunk/scripts


Ignore:
Timestamp:
2018-06-14T19:26:00+02:00 (6 years ago)
Author:
stoecker
Message:

ignore ELI ZZ country code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/SyncEditorLayerIndex.groovy

    r13831 r13931  
    507507            if (!josmUrls.containsKey(url)) continue
    508508            def j = josmUrls.get(url)
    509             if (!getCountryCode(e).equals(getCountryCode(j))) {
     509            def cce = getCountryCode(e)
     510            if ("ZZ".equals(cce)) { /* special ELI country code */
     511                cce = null
     512            }
     513            if (!cce.equals(getCountryCode(j))) {
    510514                myprintln "* Country code differs (${getCountryCode(e)} != ${getCountryCode(j)}): ${getDescription(j)}"
    511515            }
Note: See TracChangeset for help on using the changeset viewer.