Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/archivers/engrampa/files/patch-src_fr-command-zip.c
16461 views
1
--- src/fr-command-zip.c.orig 2015-10-14 17:33:41 UTC
2
+++ src/fr-command-zip.c
3
@@ -187,7 +187,11 @@ fr_command_zip_list (FrCommand *comm)
4
{
5
fr_process_set_out_line_func (comm->process, list__process_line, comm);
6
7
+#ifdef __FreeBSD__
8
+ fr_process_begin_command (comm->process, "%%LOCALBASE%%/bin/unzip");
9
+#else
10
fr_process_begin_command (comm->process, "unzip");
11
+#endif
12
fr_process_set_begin_func (comm->process, list__begin, comm);
13
fr_process_add_arg (comm->process, "-ZTs");
14
fr_process_add_arg (comm->process, "--");
15
@@ -307,7 +311,11 @@ fr_command_zip_extract (FrCommand *comm
16
process_line__common,
17
comm);
18
19
+#ifdef __FreeBSD__
20
+ fr_process_begin_command (comm->process, "%%LOCALBASE%%/bin/unzip");
21
+#else
22
fr_process_begin_command (comm->process, "unzip");
23
+#endif
24
25
if (dest_dir != NULL) {
26
fr_process_add_arg (comm->process, "-d");
27
@@ -341,7 +349,11 @@ fr_command_zip_extract (FrCommand *comm
28
static void
29
fr_command_zip_test (FrCommand *comm)
30
{
31
- fr_process_begin_command (comm->process, "unzip");
32
+#ifdef __FreeBSD__
33
+ fr_process_begin_command (comm->process, "%%LOCALBASE%%/bin/unzip");
34
+#else
35
+ fr_process_begin_command (comm->process, "%%LOCALBASE%%/bin/unzip");
36
+#endif
37
fr_process_add_arg (comm->process, "-t");
38
add_password_arg (comm, comm->password);
39
fr_process_add_arg (comm->process, "--");
40
41