Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Logging future change in #212
Logging if tag does not exist
Fixing unused tag option
  • Loading branch information
Isty001 committed Sep 14, 2020
commit 99092022bd56182d3c55f23482d29e533bb81b51
9 changes: 7 additions & 2 deletions src/clib-upgrade.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,16 @@ static int install_package(const char *slug) {
if (0 != extended_slug) {
pkg = clib_package_new_from_slug(extended_slug, opts.verbose);
} else {
logger_warn("warn", "In clib 2.6.0, this functionality will change. We will default to the latest tag rather than the master branch.")
pkg = clib_package_new_from_slug(slug, opts.verbose);
}

if (NULL == pkg)
if (NULL == pkg) {
if (opts.tag) {
logger_error("error", "Unable to install tag %s. Please make sure it actually exists.", opts.tag);
}
return -1;
}

if (root_package && root_package->prefix) {
package_opts.prefix = root_package->prefix;
Expand Down Expand Up @@ -209,7 +214,7 @@ int main(int argc, char *argv[]) {
setopt_slug);
command_option(&program, "-T", "--tag <tag>",
"The tag to upgrade to (usually it is the latest)",
setopt_token);
setopt_tag);
#ifdef HAVE_PTHREADS
command_option(&program, "-C", "--concurrency <number>",
"Set concurrency (default: " S(MAX_THREADS) ")",
Expand Down