hughesjr / rpms / tzdata

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