]> git.ipfire.org Git - pakfire.git/commitdiff
Fix execution of scriptlets in a dirty environment scriptlet-fix
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Sep 2015 17:00:09 +0000 (18:00 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Sep 2015 17:00:09 +0000 (18:00 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/actions.py

index 2b044b2f88b8009e9dfea26681dc9102d8e126e8..5245eafb4e98e356c042bd13ecaf72d7abb47000 100644 (file)
@@ -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,