working version with new Kotlin frontend!!!

This commit is contained in:
2024-02-21 08:52:00 +08:00
parent d4306555df
commit b14862fc7d
20 changed files with 828 additions and 191 deletions

View File

@@ -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 {