mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
fix updater
This commit is contained in:
parent
def0260b9d
commit
3f502aedae
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue