From 3f502aedae99df91585fd326924b1f8cf6cac573 Mon Sep 17 00:00:00 2001 From: Loki Date: Sat, 26 May 2012 23:42:01 +0300 Subject: [PATCH] fix updater --- Mage.Updater/src/main/java/com/magefree/update/Updater.java | 2 +- .../main/java/com/magefree/update/helpers/FileHelper.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Mage.Updater/src/main/java/com/magefree/update/Updater.java b/Mage.Updater/src/main/java/com/magefree/update/Updater.java index c43c215074..872be2e27a 100644 --- a/Mage.Updater/src/main/java/com/magefree/update/Updater.java +++ b/Mage.Updater/src/main/java/com/magefree/update/Updater.java @@ -119,7 +119,7 @@ public class Updater { for (String remoteFile : remote.keySet()) { if (local.containsKey(remoteFile)) { if (!local.get(remoteFile).equals(remote.get(remoteFile))) { - //System.out.println("jar need to be updated - " + remoteFile); +// System.out.println("jar need to be updated - " + remoteFile + " local: " + local.get(remoteFile) + ", remoteL " + remote.get(remoteFile)); result.add(remoteFile); } } diff --git a/Mage.Updater/src/main/java/com/magefree/update/helpers/FileHelper.java b/Mage.Updater/src/main/java/com/magefree/update/helpers/FileHelper.java index e725b9d938..8914854df2 100644 --- a/Mage.Updater/src/main/java/com/magefree/update/helpers/FileHelper.java +++ b/Mage.Updater/src/main/java/com/magefree/update/helpers/FileHelper.java @@ -18,10 +18,10 @@ public class FileHelper { /** * Filters out dirs. */ - private static final FilenameFilter anyFileFilter = new FilenameFilter() { + private static final FileFilter anyFileFilter = new FileFilter() { @Override - public boolean accept(File dir, String name) { - return dir.isFile(); + public boolean accept(File f) { + return f.isFile(); } };