python: Cleanup build
[termux-packages] / packages / dpkg / triglib_dont_chown_root.patch
CommitLineData
59f0d218
FF
1diff -u -r ../dpkg-1.17.6/lib/dpkg/triglib.c ./lib/dpkg/triglib.c
2--- ../dpkg-1.17.6/lib/dpkg/triglib.c 2013-12-14 06:30:58.000000000 +0100
3+++ ./lib/dpkg/triglib.c 2014-02-25 18:14:43.000000000 +0100
4@@ -776,10 +776,13 @@
5 if (errno != EEXIST)
6 ohshite(_("unable to create triggers state"
7 " directory `%.250s'"), triggersdir);
8- } else if (chown(triggersdir, 0, 0)) {
9+ }
10+#ifndef __ANDROID__
11+ else if (chown(triggersdir, 0, 0)) {
12 ohshite(_("unable to set ownership of triggers state"
13 " directory `%.250s'"), triggersdir);
14 }
15+#endif
16 ur = trigdef_update_start(tduf);
17 }
18 switch (ur) {