cmake: Update from 3.11.0 to 3.11.1
[termux-packages] / packages / dpkg / extract.c.patch
CommitLineData
59f0d218
FF
1Remove tar options not supported by busybox tar.
2
3diff -u -r ../dpkg-1.17.10/dpkg-deb/extract.c ./dpkg-deb/extract.c
4--- ../dpkg-1.17.10/dpkg-deb/extract.c 2014-06-04 02:02:54.000000000 +0200
5+++ ./dpkg-deb/extract.c 2014-07-01 16:40:02.785848137 +0200
6@@ -327,14 +327,20 @@
7 else
8 internerr("unknown or missing tar action '%d'", taroption);
9
10+#ifndef __ANDROID__
11+ /* busybox tar does not support this */
12 if (taroption & DPKG_TAR_PERMS)
13 command_add_arg(&cmd, "-p");
14+#endif
15 if (taroption & DPKG_TAR_NOMTIME)
16 command_add_arg(&cmd, "-m");
17
18 command_add_arg(&cmd, "-f");
19 command_add_arg(&cmd, "-");
20+#ifndef __ANDROID__
21+ /* busybox tar does not support this */
22 command_add_arg(&cmd, "--warning=no-timestamp");
23+#endif
24
25 m_dup2(p2[0],0);
26 close(p2[0]);