diff options
| author | dacctal <dacctalyt@gmail.com> | 2026-04-03 14:56:05 +0000 |
|---|---|---|
| committer | dacctal <dacctalyt@gmail.com> | 2026-04-03 14:56:05 +0000 |
| commit | ed78991edc4755c0276dcb4eb454b43fa38296fc (patch) | |
| tree | 460da5399e34e1dce7a293cb22578da15977d895 /src/update_pkg.cc | |
| parent | 2a6b92ed130ade1ea7542ee210e6957427a0aa81 (diff) | |
countless changes
Diffstat (limited to 'src/update_pkg.cc')
| -rw-r--r-- | src/update_pkg.cc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/update_pkg.cc b/src/update_pkg.cc index 4b35793..881beff 100644 --- a/src/update_pkg.cc +++ b/src/update_pkg.cc @@ -1,12 +1,11 @@ -#include "is_updated.cc" -#include "build_pkg.cc" -#include "link_install.cc" -#include "vars.cc" +#include <filesystem> +#include <iostream> + +#include "update_pkg.hh" +#include "is_updated.hh" +#include "install_pkg.hh" void update_pkg(Pkg pkg) { - if (is_updated(pkg.src)) { - build_pkg(pkg.src); - link_install(pkg.src); - } - else { std::cout << print_skipped << pkg.name << " is already up to date."; } + if (is_updated(pkg.src)) { std::cout << print_skipped << pkg.name << " is already up to date."; return; } + install_pkg(pkg); } |
