aboutsummaryrefslogtreecommitdiff
path: root/snag/src/main.c
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2026-07-23 15:34:43 -0400
committerJack Jamison <jackqjamison@gmail.com>2026-07-23 15:34:43 -0400
commit9282991429a92d6df17213acdc49fe687f42da6c (patch)
tree0e7ca7f74ba0c8b445956eab4d47545e0adcf407 /snag/src/main.c
parentd9bc99629dd3f8624df98ead06f400c4ffb3880b (diff)
download db is now source db, ready to start build
Diffstat (limited to 'snag/src/main.c')
-rw-r--r--snag/src/main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/snag/src/main.c b/snag/src/main.c
index c5a0736..5835859 100644
--- a/snag/src/main.c
+++ b/snag/src/main.c
@@ -3,7 +3,7 @@
#include "util.h"
#include "package_db.h"
#include "build_db.h"
-#include "download_db.h"
+#include "source_db.h"
int cmd_install(char* cmd_name, ArgParser* parser);
@@ -46,9 +46,10 @@ int cmd_install(char* cmd_name, ArgParser* parser) {
if (load_package_info(pkgid, &info)) {
print("Installing %s - %s\n", info.attrs.name, info.attrs.desc);
- // download or retrieve package download
- package_download_t download;
- if (!package_get_download(&info, &download)) continue;
+ // confirm that package source exists or is downloaded
+ if (!verify_source(&info.attrs.source) && !download_source(&info.attrs.source)) {
+ continue;
+ }
// run the package install
package_run_build(&info);