Author: mkoch
Date: 2007-07-17 18:26:39 +0000 (Tue, 17 Jul 2007)
New Revision: 3871

Added:
   trunk/ant/debian/patches/05_ant-bug433444.patch
Modified:
   trunk/ant/debian/changelog
Log:
ant (1.7.0-2) unstable; urgency=low

  * Added debian/patches/05_ant-bug433444.patch. Closes: #433444.

 -- Michael Koch <[EMAIL PROTECTED]>  Tue, 17 Jul 2007 13:25:02 -0100



Modified: trunk/ant/debian/changelog
===================================================================
--- trunk/ant/debian/changelog  2007-07-17 05:30:06 UTC (rev 3870)
+++ trunk/ant/debian/changelog  2007-07-17 18:26:39 UTC (rev 3871)
@@ -1,3 +1,9 @@
+ant (1.7.0-2) unstable; urgency=low
+
+  * Added debian/patches/05_ant-bug433444.patch. Closes: #433444.
+
+ -- Michael Koch <[EMAIL PROTECTED]>  Tue, 17 Jul 2007 13:25:02 -0100
+
 ant (1.7.0-1) unstable; urgency=low
 
   * New upstream version. Closes: #412716.

Added: trunk/ant/debian/patches/05_ant-bug433444.patch
===================================================================
--- trunk/ant/debian/patches/05_ant-bug433444.patch                             
(rev 0)
+++ trunk/ant/debian/patches/05_ant-bug433444.patch     2007-07-17 18:26:39 UTC 
(rev 3871)
@@ -0,0 +1,18 @@
+--- ./src/main/org/apache/tools/ant/types/resources/comparators/Date.java.orig 
2007-07-17 13:21:17.000000000 -0100
++++ ./src/main/org/apache/tools/ant/types/resources/comparators/Date.java      
2007-07-17 13:22:02.000000000 -0100
+@@ -32,7 +32,14 @@
+      *         argument is less than, equal to, or greater than the second.
+      */
+     protected int resourceCompare(Resource foo, Resource bar) {
+-        return (int) (foo.getLastModified() - bar.getLastModified());
++      long diff = foo.getLastModified() - bar.getLastModified();
++      if (diff > 0) {
++              return +1;
++      } else if (diff < 0) {
++              return -1;
++      } else {
++              return 0;
++      }
+     }
+ 
+ }


_______________________________________________
pkg-java-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-java-commits

Reply via email to