From: Michael Tremer Date: Thu, 10 Sep 2015 17:00:09 +0000 (+0100) Subject: Fix execution of scriptlets in a dirty environment X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Fscriptlet-fix;p=pakfire.git Fix execution of scriptlets in a dirty environment Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/actions.py b/src/pakfire/actions.py index 2b044b2f8..5245eafb4 100644 --- a/src/pakfire/actions.py +++ b/src/pakfire/actions.py @@ -145,6 +145,10 @@ class Action(object): args = { "cwd" : cwd, + "env" : { + "LANG" : "C", + "PATH" : "/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin", + }, "logger" : self.get_logger(), "personality" : self.pakfire.distro.personality, "shell" : False,