diff --git a/Makefile b/Makefile index 8fa5dce..8d3b7a4 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,10 @@ gdb: vieter run: vieter $(ENV) ./vieter +.PHONY: run-debug +run-debug: debug + $(ENV) ./dvieter + .PHONY: run-prod run-prod: prod $(ENV) ./pvieter diff --git a/src/main.v b/src/main.v index f8628dc..159d34e 100644 --- a/src/main.v +++ b/src/main.v @@ -10,8 +10,6 @@ const port = 8000 const buf_size = 1_000_000 -const db_name = 'pieter.db' - struct App { web.Context pub: diff --git a/src/repo/multi.v b/src/repo/multi.v index bf83dfe..865f265 100644 --- a/src/repo/multi.v +++ b/src/repo/multi.v @@ -40,7 +40,7 @@ pub fn new_multi(repo_dir string, pkg_dir string) ?MultiArchRepo { pub fn (r &MultiArchRepo) add_from_path(repo_name string, pkg_path string) ?(bool, &package.Pkg) { // First, we create the repo if it isn't present yet - repo := lock r.repos { + rp := lock r.repos { if repo_name !in r.repos { r.repos[repo_name] = new_arch(os.join_path_single(r.repo_dir, repo_name), r.pkg_dir) ? @@ -52,7 +52,7 @@ pub fn (r &MultiArchRepo) add_from_path(repo_name string, pkg_path string) ?(boo // We read in the package file pkg := package.read_pkg(pkg_path) or { return error('Failed to read package file: $err.msg') } - added := repo.add(pkg) ? + added := rp.add(pkg) ? // Move over package to pkg dir if it was successfully added if added {