blob: 881beff2d5f65b567f122c8545eb3f44dacb639d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#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)) { std::cout << print_skipped << pkg.name << " is already up to date."; return; }
install_pkg(pkg);
}
|