hughesjr / rpms / tzdata

Forked from rpms/tzdata 2 years ago
Clone
ec4ff0
diff --git a/rebase-02.patch b/rebase-02.patch
ec4ff0
new file mode 100644
ec4ff0
index 0000000..0f57125
ec4ff0
--- /dev/null
ec4ff0
+++ b/rebase-02.patch
ec4ff0
@@ -0,0 +1,36 @@
ec4ff0
+--- sun/tools/javazic/Mappings.java.orig       2015-04-13 12:40:26.000000000 -0400
ec4ff0
++++ sun/tools/javazic/Mappings.java    2015-04-13 12:42:11.000000000 -0400
ec4ff0
+@@ -75,8 +75,10 @@
ec4ff0
+           Zone zone = zones.get(zoneName);
ec4ff0
+           String zonename = zone.getName();
ec4ff0
+           int rawOffset = zone.get(zone.size()-1).getGmtOffset();
ec4ff0
++
ec4ff0
+           // If the GMT offset of this Zone will change in some
ec4ff0
+           // future time, this Zone is added to the exclude list.
ec4ff0
++            boolean isExcluded = false;
ec4ff0
+           if (zone.size() > 1) {
ec4ff0
+               ZoneRec zrec = zone.get(zone.size()-2);
ec4ff0
+               if ((zrec.getGmtOffset() != rawOffset)
ec4ff0
+@@ -85,7 +87,7 @@
ec4ff0
+                       excludeList = new ArrayList<String>();
ec4ff0
+                   }
ec4ff0
+                   excludeList.add(zone.getName());
ec4ff0
+-                  continue;
ec4ff0
++                    isExcluded = true;
ec4ff0
+               }
ec4ff0
+           }
ec4ff0
+ 
ec4ff0
+@@ -101,9 +103,11 @@
ec4ff0
+               rawOffsetsIndex.add(i, rawOffset);
ec4ff0
+ 
ec4ff0
+               Set<String> perRawOffset = new TreeSet<String>();
ec4ff0
+-              perRawOffset.add(zonename);
ec4ff0
++                if (!isExcluded) {
ec4ff0
++                    perRawOffset.add(zonename);
ec4ff0
++                }
ec4ff0
+               rawOffsetsIndexTable.add(i, perRawOffset);
ec4ff0
+-          } else {
ec4ff0
++            } else if (!isExcluded) {
ec4ff0
+               int i = rawOffsetsIndex.indexOf(new Integer(rawOffset));
ec4ff0
+               Set<String> perRawOffset = rawOffsetsIndexTable.get(i);
ec4ff0
+               perRawOffset.add(zonename);