diff options
Diffstat (limited to 'src/update_pkg.c')
| -rw-r--r-- | src/update_pkg.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/update_pkg.c b/src/update_pkg.c new file mode 100644 index 0000000..c0fdd92 --- /dev/null +++ b/src/update_pkg.c @@ -0,0 +1,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); +}
\ No newline at end of file |
