working version with new Kotlin frontend!!!
This commit is contained in:
@@ -310,7 +310,7 @@ public class PkgDataParser {
|
||||
List<String> value = entry.getValue();
|
||||
switch (key) {
|
||||
case "size":
|
||||
data.setSize(Long.parseLong(value.get(0)));
|
||||
data.setInstalledSize(Long.parseLong(value.get(0)));
|
||||
break;
|
||||
case "arch":
|
||||
data.getPkgId().setArch(value.get(0));
|
||||
@@ -395,6 +395,7 @@ public class PkgDataParser {
|
||||
data.setMd5sum(Hash.hash(Hash.Algorithm.MD5, fis).getBytes());
|
||||
}
|
||||
data.setFileName(file.getFileName().toString());
|
||||
data.setSize(Files.size(file));
|
||||
return data;
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user