mirror of https://gitlab.com/nakst/essence
log more in GetSource
This commit is contained in:
parent
8e48454691
commit
92201e4b89
|
@ -1326,6 +1326,8 @@ void GetSource(const char *parameters, const char *checksum) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (checksum) {
|
if (checksum) {
|
||||||
|
fprintf("Checking validity of downloading file...\n");
|
||||||
|
|
||||||
int checksumLength = strlen(checksum);
|
int checksumLength = strlen(checksum);
|
||||||
|
|
||||||
for (int i = 0; checksum[i]; i++) {
|
for (int i = 0; checksum[i]; i++) {
|
||||||
|
@ -1342,8 +1344,11 @@ void GetSource(const char *parameters, const char *checksum) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fprintf("Decompressing...\n");
|
||||||
if (CallSystemF("tar -x%cf %s", decompressFlag, name)) exit(1);
|
if (CallSystemF("tar -x%cf %s", decompressFlag, name)) exit(1);
|
||||||
|
fprintf("Moving...\n");
|
||||||
if (CallSystemF("mv %.*s bin/source", (int) (url - folder), folder)) exit(1);
|
if (CallSystemF("mv %.*s bin/source", (int) (url - folder), folder)) exit(1);
|
||||||
|
fprintf("Done.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void RunTests(int singleTest) {
|
void RunTests(int singleTest) {
|
||||||
|
|
Loading…
Reference in New Issue