fix updater

This commit is contained in:
Loki 2012-05-26 23:42:01 +03:00
parent def0260b9d
commit 3f502aedae
2 changed files with 4 additions and 4 deletions

View file

@ -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);
}
}

View file

@ -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();
}
};