From aa0d78815004ae6b0c4a42b0e024f5c4ef555ae2 Mon Sep 17 00:00:00 2001 From: dacctal Date: Sun, 24 May 2026 10:23:38 +0000 Subject: c rewrite --- src/update_pkg.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/update_pkg.c (limited to 'src/update_pkg.c') diff --git a/src/update_pkg.c b/src/update_pkg.c new file mode 100644 index 0000000..c0fdd92 --- /dev/null +++ b/src/update_pkg.c @@ -0,0 +1,14 @@ +#include +#include + +#include "update_pkg.h" +#include "is_updated.h" +#include "install_pkg.h" + +void update_pkg(Pkg pkg) { + if (is_updated(pkg.src)) { + printf("%s%s is already up to date.\n", print_skipped, pkg.name); + return; + } + install_pkg(pkg); +} \ No newline at end of file -- cgit v1.2.3