blob: c926d4b72bfbc0dd452e9c975359bffad7a4122a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <stdio.h>
#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%s%s is already up to date.\n", print_skipped, green, pkg.name, color_reset);
return;
}
printf("%s Updating package: %s%s%s\n", print_pkgit, green, pkg.name, color_reset);
install_pkg(pkg);
}
|