diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-09-10 13:44:22 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2022-09-10 13:44:22 +0200 |
commit | c72e1aa5b6ccd3f8cb4591d15ed20fab35087524 (patch) | |
tree | 693ea44ccca0064c1fdbf8f2eb441c32137291bc | |
parent | e2b9f5722c2724c097338708ce8eb2b2293cc198 (diff) | |
download | OFQT-c72e1aa5b6ccd3f8cb4591d15ed20fab35087524.tar.gz OFQT-c72e1aa5b6ccd3f8cb4591d15ed20fab35087524.zip |
set latest to revision number, not revision
-rw-r--r-- | src/mirror/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mirror/main.c b/src/mirror/main.c index a97dea0..51ce98a 100644 --- a/src/mirror/main.c +++ b/src/mirror/main.c @@ -6,6 +6,7 @@ #include "toast.h" #include "fs.h" #include "pool.h" +#include "net.h" struct thread_object_info { int i; @@ -155,7 +156,8 @@ int main(int argc, char** argv) sprintf(buf, "%i", latest_rev); sprintf(revisions_dir_end, "%slatest", OS_PATH_SEP); - symlink(buf, revisions_dir); + setLocalRevision(output_dir, latest_rev); + symlink(".." OS_PATH_SEP TOAST_LOCAL_REVISION_PATH, revisions_dir); free(buf); free(revisions_dir); |