mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +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()) {
|
for (String remoteFile : remote.keySet()) {
|
||||||
if (local.containsKey(remoteFile)) {
|
if (local.containsKey(remoteFile)) {
|
||||||
if (!local.get(remoteFile).equals(remote.get(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);
|
result.add(remoteFile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,10 +18,10 @@ public class FileHelper {
|
||||||
/**
|
/**
|
||||||
* Filters out dirs.
|
* Filters out dirs.
|
||||||
*/
|
*/
|
||||||
private static final FilenameFilter anyFileFilter = new FilenameFilter() {
|
private static final FileFilter anyFileFilter = new FileFilter() {
|
||||||
@Override
|
@Override
|
||||||
public boolean accept(File dir, String name) {
|
public boolean accept(File f) {
|
||||||
return dir.isFile();
|
return f.isFile();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue