diff options
author | miwi <miwi@FreeBSD.org> | 2018-07-28 22:43:05 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2018-07-28 22:43:05 +0800 |
commit | 25c2aea49cc5ebf9e4a3bd218950f2386b07015d (patch) | |
tree | 076ec10021b4d30e6b8031ec1dcc0f66dbc70100 /net/megatools | |
parent | 304726294e2fffd55cce1f81dc3cf650bc6ab87c (diff) | |
download | freebsd-ports-gnome-25c2aea49cc5ebf9e4a3bd218950f2386b07015d.tar.gz freebsd-ports-gnome-25c2aea49cc5ebf9e4a3bd218950f2386b07015d.tar.zst freebsd-ports-gnome-25c2aea49cc5ebf9e4a3bd218950f2386b07015d.zip |
- Update to 1.10.1
PR: 230108
Sponsored by: iXsystems Inc.
Diffstat (limited to 'net/megatools')
-rw-r--r-- | net/megatools/Makefile | 2 | ||||
-rw-r--r-- | net/megatools/distinfo | 6 | ||||
-rw-r--r-- | net/megatools/files/patch-lib_mega.c | 46 | ||||
-rw-r--r-- | net/megatools/files/patch-lib_mega.h | 19 |
4 files changed, 4 insertions, 69 deletions
diff --git a/net/megatools/Makefile b/net/megatools/Makefile index 13b8c69cb466..46a39146d899 100644 --- a/net/megatools/Makefile +++ b/net/megatools/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= megatools -PORTVERSION= 1.10.0 +PORTVERSION= 1.10.1 CATEGORIES= net MASTER_SITES= https://megatools.megous.com/builds/ diff --git a/net/megatools/distinfo b/net/megatools/distinfo index fb031445056c..9bd9069494a9 100644 --- a/net/megatools/distinfo +++ b/net/megatools/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1532507562 -SHA256 (megatools-1.10.0.tar.gz) = 788a51d0977db95c371c97917aee3d39e145044b6bb70d671bc76c2ea6c4171b -SIZE (megatools-1.10.0.tar.gz) = 297369 +TIMESTAMP = 1532784946 +SHA256 (megatools-1.10.1.tar.gz) = 9938127db27b579d49aa8722bfdddd17833fe90668aa2670ce88d1c889452d67 +SIZE (megatools-1.10.1.tar.gz) = 299422 diff --git a/net/megatools/files/patch-lib_mega.c b/net/megatools/files/patch-lib_mega.c deleted file mode 100644 index f45b366c10bf..000000000000 --- a/net/megatools/files/patch-lib_mega.c +++ /dev/null @@ -1,46 +0,0 @@ ---- lib/mega.c.orig 2018-07-22 21:41:55 UTC -+++ lib/mega.c -@@ -3172,6 +3172,7 @@ static void tman_worker_upload_chunk(struct transfer_c - GError *local_err = NULL; - gc_free gchar *url = NULL; - gc_string_free GString *response = NULL; -+ gc_free gchar* chksum = NULL; - - tman_debug("W[%d]: started for chunk %d\n", worker->index, c->index); - -@@ -3217,7 +3218,7 @@ static void tman_worker_upload_chunk(struct transfer_c - } - - // prepare URL including chunk offset -- gc_free gchar* chksum = upload_checksum(buf, c->size); -+ chksum = upload_checksum(buf, c->size); - url = g_strdup_printf("%s/%" G_GOFFSET_FORMAT "?c=%s", t->upload_url, c->offset, chksum); - - // perform upload POST -@@ -4636,6 +4637,26 @@ gboolean mega_node_get_path(struct mega_node *n, gchar - gboolean mega_node_is_container(struct mega_node *n) - { - return n && n->type != MEGA_NODE_FILE; -+} -+ -+// }}} -+// {{{ mega_node_has_ancestor -+ -+gboolean mega_node_has_ancestor(struct mega_node *n, struct mega_node *ancestor) -+{ -+ g_return_val_if_fail(n != NULL, FALSE); -+ g_return_val_if_fail(ancestor != NULL, FALSE); -+ -+ struct mega_node* it = n->parent; -+ -+ while (it) { -+ if (it == ancestor) -+ return TRUE; -+ -+ it = it->parent; -+ } -+ -+ return FALSE; - } - - // }}} diff --git a/net/megatools/files/patch-lib_mega.h b/net/megatools/files/patch-lib_mega.h deleted file mode 100644 index 14ba316b7cb0..000000000000 --- a/net/megatools/files/patch-lib_mega.h +++ /dev/null @@ -1,19 +0,0 @@ ---- lib/mega.h.orig 2018-07-22 21:40:40 UTC -+++ lib/mega.h -@@ -118,7 +118,7 @@ struct mega_download_data_params { - - gchar *node_handle; - gchar *node_name; -- gsize node_size; -+ guint64 node_size; - }; - - #define MEGA_DEBUG_API 0x01 -@@ -181,6 +181,7 @@ void mega_download_data_free(struct mega_download_data - gboolean mega_node_is_writable(struct mega_session *s, struct mega_node *n); - - gboolean mega_node_is_container(struct mega_node *n); -+gboolean mega_node_has_ancestor(struct mega_node *n, struct mega_node *ancestor); - gchar *mega_node_get_link(struct mega_node *n, gboolean include_key); - gchar *mega_node_get_key(struct mega_node *n); - gboolean mega_node_get_path(struct mega_node *n, gchar *buf, gsize len); |