Changeset 12008 in josm for trunk/scripts


Ignore:
Timestamp:
2017-04-26T19:44:46+02:00 (2 years ago)
Author:
stoecker
Message:

ignore differing imagico text - allows us to strip the ugly header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/SyncEditorLayerIndex.groovy

    r12007 r12008  
    462462            def et = getDescriptions(e)
    463463            def jt = getDescriptions(j)
    464             if (et.size() > 0) et = et["en"]
    465             if (jt.size() > 0) jt = jt["en"]
    466             if (!et.equals(jt)) {
     464            et = (et.size() > 0) ? et["en"] : ""
     465            jt = (jt.size() > 0) ? jt["en"] : ""
     466            def et2 = et.replaceAll("channels (\\d+) ", "\$1 channels ") // imagico entries
     467            if (!et.equals(jt) && !(et && jt && (et.endsWith(jt) || et2.endsWith(jt)))) {
    467468                if (!jt) {
    468469                    myprintln "+ SKIP - Missing JOSM description (${et}): ${getDescription(j)}"
Note: See TracChangeset for help on using the changeset viewer.