hughesjr / rpms / tzdata

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