Skip to content
Snippets Groups Projects
Commit 3a2b2ea8 authored by Nuno Teixeira's avatar Nuno Teixeira
Browse files

net/gitup: Update to 0.97

 - remove files/patch-gitup.c included upstream

ChangeLog: https://github.com/johnmehr/gitup/releases/tag/0.97
parent c368c7fc
No related branches found
No related tags found
No related merge requests found
PORTNAME= gitup
DISTVERSION= 0.96
PORTREVISION= 1
DISTVERSION= 0.97
CATEGORIES= net
MAINTAINER= eduardo@FreeBSD.org
......
TIMESTAMP = 1631528863
SHA256 (johnmehr-gitup-0.96_GH0.tar.gz) = 47e2df5cbe95afab6c419da3bfa1ac3068812c00e49033b160e5ba847923e9c1
SIZE (johnmehr-gitup-0.96_GH0.tar.gz) = 29134
TIMESTAMP = 1654358061
SHA256 (johnmehr-gitup-0.97_GH0.tar.gz) = e474a88a4cd9fda43e6004b536ac0e519d508addb0d5b5b10b8289f04276cf43
SIZE (johnmehr-gitup-0.97_GH0.tar.gz) = 31005
--- gitup.c.orig 2021-09-05 19:58:01.000000000 +0300
+++ gitup.c 2022-01-18 16:53:41.999972000 +0300
@@ -676,7 +676,8 @@ save_file(char *path, int mode, char *buffer, int buff
memcpy(temp_buffer, buffer, buffer_size);
temp_buffer[buffer_size] = '\0';
- if (symlink(temp_buffer, path) == -1)
+ if (symlink(temp_buffer, path) == -1 &&
+ (unlink(path), symlink(temp_buffer, path)) == -1)
err(EXIT_FAILURE,
"save_file: symlink failure %s -> %s",
path,
@@ -2800,7 +2801,9 @@ save_repairs(connector *session)
"save_repairs: cannot create %s",
found_file->path);
} else {
- missing = !path_exists(found_file->path);
+ struct stat st;
+
+ missing = stat(found_file->path, &st) != 0;
update = true;
/*
@@ -2813,7 +2816,7 @@ save_repairs(connector *session)
check_hash = calculate_file_hash(
found_file->path,
- found_file->mode);
+ st.st_mode);
buffer_hash = calculate_object_hash(
found_object->buffer,
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment