kuuko pushed a commit to branch master.

http://git.enlightenment.org/misc/polkit-efl.git/commit/?id=d2fedf7716e8128c7e664432051ce8b20ffc7289

commit d2fedf7716e8128c7e664432051ce8b20ffc7289
Author: Kai Huuhko <kai.huu...@gmail.com>
Date:   Sun Jul 20 21:53:23 2014 +0300

    Keep path detection working for non-discomfitor distros
---
 polkit-efl-authentication-agent-1 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/polkit-efl-authentication-agent-1 
b/polkit-efl-authentication-agent-1
index 03ebd27..5874192 100755
--- a/polkit-efl-authentication-agent-1
+++ b/polkit-efl-authentication-agent-1
@@ -112,7 +112,8 @@ for pk_name in "polkit-1", "policykit-1":
         )
     if os.path.exists(path):
         POLKIT_HELPER_PATH = path
-    elif path.find("64"):
+    # XXX: Crappy hack for Fedora
+    elif POLKIT_HELPER_PREFIX.endswith("64"):
         path = path.replace("64", "")
         if os.path.exists(path):
             POLKIT_HELPER_PATH = path

-- 


Reply via email to