package

simple and robust package manager
Log | Files | Refs | README

commit 629e4c29fdf5f85a13d2dbc43f88f00cec46eab2
parent 7779e9efbd569c5fd6340cc463e44549924dbcea
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat, 19 Jan 2019 16:39:49 +0100

typos

Diffstat:
Mpackage-add.c | 4++--
Mpackage-build.c | 4++--
Mpackage-dep.c | 4++--
Mpackage-get.c | 6+++---
Mpackage-tree.c | 4++--
5 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/package-add.c b/package-add.c @@ -42,14 +42,14 @@ main(int argc, char **argv) n = package_scan(&p, *av); if (n == 0 || (*av)[n] != '\0') - log_fatal_2(1, "invalid packageage name: ", *av); + log_fatal_2(1, "invalid package name: ", *av); if (!package_version(&p, def)) log_fatal_sys_3(101, "not read ", *av,"'s version"); genalloc_init(&ga); if (!package_dep(&p, &ga, def)) - log_fatal_sys_1(103, "could not resolve packageage dependencies"); + log_fatal_sys_1(103, "could not resolve package dependencies"); if (!genalloc_append(&ga, p)) die_nomem(); for (size_t i = 0; i < genalloc_len(&ga, package); ++i) diff --git a/package-build.c b/package-build.c @@ -236,7 +236,7 @@ main(int argc, char **argv) break; } - if (!*av) log_usage(*argv, "[-p pkgdir] [-d defdir] packageage[/version]"); + if (!*av) log_usage(*argv, "[-p pkgdir] [-d defdir] package[/version]"); tain_now(&tn); id[tain_fmt(&tn, id)] = '\0'; @@ -244,7 +244,7 @@ main(int argc, char **argv) if (chdir(pkg) == -1) log_fatal_sys_2(101, "chdir ", pkg); if ((*av)[package_scan(&p, *av)] != '\0') - log_fatal_sys_2(1, "invalid packageage format: ", *av); + log_fatal_sys_2(1, "invalid package format: ", *av); if (mkdir(p.name, 075) == -1 && errno != EEXIST) log_fatal_sys_4(101, "mkdir ", pkg, "/", p.name); if (chdir(p.name) == -1) diff --git a/package-dep.c b/package-dep.c @@ -33,14 +33,14 @@ main(int argc, char **argv) n = package_scan(&p, *argv); if (n == 0 || (*argv)[n] != '\0') - log_fatal_2(1, "invalid packageage name: ", *argv); + log_fatal_2(1, "invalid package name: ", *argv); if (!package_version(&p, def)) log_fatal_sys_3(103, "could not get ", *argv," version"); genalloc_init(&ga); if (!package_dep(&p, &ga, def)) - log_fatal_sys_1(103, "could not resolve packageage dependencies"); + log_fatal_sys_1(103, "could not resolve package dependencies"); if (!genalloc_append(&ga, p)) log_fatal_sys_1(103, "malloc"); for (i = 0; i < genalloc_len(&ga, package); ++i) { diff --git a/package-get.c b/package-get.c @@ -44,12 +44,12 @@ main(int argc, char **argv) break; } - if (!*av) log_usage(*argv, "packageage[/version]"); + if (!*av) log_usage(*argv, "package[/version]"); if (!stat_isdir(def)) log_fatal_sys_1(101, def); n = package_scan(&p, *av); if ((*av)[n] != '\0') - log_fatal_2(1, "invalid packageage format: ", *argv); + log_fatal_2(1, "invalid package format: ", *argv); if (!package_version(&p, def)) log_fatal_sys_2(101, "package_version ", p.name); @@ -114,7 +114,7 @@ main(int argc, char **argv) argv[2] = sa.x; argv[3] = NULL; if ((forkexec_redir(argv, 2, fd_log)) != 0) - log_error_4("downloading packageage ", p.name, "/", p.ver); + log_error_4("downloading package ", p.name, "/", p.ver); else if (rename("source.tmp", "source.tar") == -1) log_fatal_sys_1(100, "rename source.tmp source.tar"); else diff --git a/package-tree.c b/package-tree.c @@ -78,11 +78,11 @@ main(int argc, char **argv) if (!stat_isdir(def)) log_fatal_sys_1(101, def); - if (argc != 2) log_usage(*argv, "packageage[/version]"); + if (argc != 2) log_usage(*argv, "package[/version]"); ++argv; if (!package_scan(&p, *argv)) - log_fatal_2(1, "invalid packageage format: ", *argv); + log_fatal_2(1, "invalid package format: ", *argv); stralloc_init(&sa); if (!tree(&p, &sa, def))