From 8f5dc1930debe95e106595da33951bd870672d85 Mon Sep 17 00:00:00 2001 From: forever2k38 Date: Mon, 31 Aug 2026 10:19:12 +0200 Subject: feat: find package by name --- src/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index abc3ffc..64cb537 100644 --- a/src/main.c +++ b/src/main.c @@ -1,5 +1,8 @@ #include "args.h" #include "config.h" +#include "repo.h" + +#include "stdio.h" int main(int argc, char *argv[]) { pow_args args = {0}; @@ -15,6 +18,11 @@ int main(int argc, char *argv[]) { pow_config config = {0}; pow_open_config(&config, args.cfg_path); + + if (args.flags & POW_FLAG_QUERY) { + repo_check_package(config.repos, config.repos_count, args.package); + } + pow_close_config(&config); return 0; -- cgit v1.3