Changeset 3076 in josm


Ignore:
Timestamp:
2010-03-04T10:33:47+01:00 (14 years ago)
Author:
bastiK
Message:

see #4565 - local version number lost, after update plugin list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginListParser.java

    r2817 r3076  
    6565            String url = null;
    6666            StringBuilder manifest = new StringBuilder();
     67            /*
     68            code structure:
     69                for () {
     70                    A;
     71                    B;
     72                    C;
     73                }
     74                B;
     75            */
    6776            for (String line = r.readLine(); line != null; line = r.readLine()) {
    6877                if (line.startsWith("\t")) {
     
    7887                    PluginInformation info = createInfo(name, url, manifest.toString());
    7988                    if (info != null) {
     89                        for (PluginProxy plugin : PluginHandler.pluginList) {
     90                            if (plugin.getPluginInformation().name.equals(info.getName())) {
     91                                info.localversion = plugin.getPluginInformation().localversion;
     92                            }
     93                        }
    8094                        ret.add(info);
    8195                    }
     
    90104                PluginInformation info = createInfo(name, url, manifest.toString());
    91105                if (info != null) {
     106                    for (PluginProxy plugin : PluginHandler.pluginList) {
     107                        if (plugin.getPluginInformation().name.equals(info.getName())) {
     108                            info.localversion = plugin.getPluginInformation().localversion;
     109                        }
     110                    }
    92111                    ret.add(info);
    93112                }
Note: See TracChangeset for help on using the changeset viewer.