summarylogtreecommitdiffstats
path: root/multilib.diff
blob: 1d919c9c69a25e00b5d064f52d524bbcbf03302b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git i/meson_post_install.py w/meson_post_install.py
index e742310..b8cd360 100644
--- i/meson_post_install.py
+++ w/meson_post_install.py
@@ -29,7 +29,9 @@ except KeyError:
 
 dst = os.path.join(bindir, 'pkexec')
 
-if os.geteuid() == 0:
+if not os.path.exists(dst):
+    pass
+elif os.geteuid() == 0:
     os.chown(dst, 0, -1)
     os.chmod(dst, 0o4755)
 else:
@@ -62,7 +64,9 @@ for dst in dst_dirs:
 # and/or other users.
 dst = os.path.join(pkglibdir, 'polkit-agent-helper-1')
 
-if os.geteuid() == 0:
+if not os.path.exists(dst):
+    pass
+elif os.geteuid() == 0:
     os.chown(dst, 0, -1)
     os.chmod(dst, 0o4755)
 else: