From 7721fb280709dac91e7c602b491c25b3470f3a65 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 20 Aug 2021 08:32:47 -0300 Subject: src/gistatic.c: s/snapshots/tarballs/ --- src/gistatic.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/gistatic.c') diff --git a/src/gistatic.c b/src/gistatic.c index a2c9c14..bb89bed 100644 --- a/src/gistatic.c +++ b/src/gistatic.c @@ -1753,8 +1753,8 @@ static int repo_write_refs( " \n" " \n" " \n" - " %s-%s.tar.xz\n" - " (sig)\n" + " %s-%s.tar.xz\n" + " (sig)\n" " \n" " \n" " %s\n" @@ -1832,7 +1832,7 @@ cleanup: return ret; } -static int repo_write_snapshots( +static int repo_write_tarballs( const char *const outdir, struct git_repository *const repo, const char *const project_name @@ -1842,18 +1842,18 @@ static int repo_write_snapshots( (void)outdir; (void)repo; (void)project_name; - char *snapshots_dir = NULL; + char *tarballs_dir = NULL; struct git_reference_iterator *ref_iter = NULL; - if (!(snapshots_dir = strjoin(outdir, "/snapshots"))) { + if (!(tarballs_dir = strjoin(outdir, "/tarballs"))) { ret = -1; goto cleanup; } errno = 0; - if (mkdir(snapshots_dir, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) + if (mkdir(tarballs_dir, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) && errno != EEXIST) { - logerrs("mkdir(\"", snapshots_dir, "\")", strerror(errno), + logerrs("mkdir(\"", tarballs_dir, "\")", strerror(errno), __LINE__); ret = EXIT_ERROR; goto cleanup; @@ -1901,7 +1901,7 @@ static int repo_write_snapshots( cleanup: git_reference_iterator_free(ref_iter); - free(snapshots_dir); + free(tarballs_dir); return ret; } @@ -2001,7 +2001,7 @@ static int repo_write( if ( repo_write_refs(outdir, repo, encoded_name, encoded_description, clone_url) - || repo_write_snapshots(outdir, repo, encoded_name) + || repo_write_tarballs(outdir, repo, encoded_name) ) { ret = -1; goto cleanup; -- cgit v1.2.3