blob: 7511b54527c13fcdfd8e9119d5b917758de640e9 (
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("%s Updating package: %s%s%s\n", print_pkgit, green, pkg.name, color_reset);
install_pkg(pkg);
}
|