blob: 093f25c1b98ff8d22ec190b1b4b375de40f9a040 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <stdio.h>
#include <string.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("%sUpdating package: %s%s%s\n", print_pkgit, green, pkg.name, color_reset);
install_pkg(pkg);
}
|