blob: c0fdd92044c8a816535ac7c3041cd7355a9e1c4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#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 is already up to date.\n", print_skipped, pkg.name);
return;
}
install_pkg(pkg);
}
|