/usr/local/bin is expected to override /usr/bin in PATH.
authorCarl Hetherington <cth@carlh.net>
Mon, 15 Jun 2015 22:10:16 +0000 (23:10 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 15 Jun 2015 22:10:16 +0000 (23:10 +0100)
cdist

diff --git a/cdist b/cdist
index 742e354d4c383686418ec326db4d575963c284a5..a27b33761e44e40f947caf7a10aaef2ab6ae7c5f 100755 (executable)
--- a/cdist
+++ b/cdist
@@ -427,7 +427,7 @@ class LinuxTarget(Target):
         self.set('CPPFLAGS', '')
         self.set('LINKFLAGS', '-L%s/lib' % self.directory)
         self.set('PKG_CONFIG_PATH', '%s/lib/pkgconfig:/usr/local/lib/pkgconfig' % self.directory)
-        self.set('PATH', '/usr/bin:/bin:/usr/sbin:/sbin/:/usr/local/bin')
+        self.set('PATH', '/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin')
 
     def command(self, c):
         command('%s schroot -c %s -p -- %s' % (self.variables_string(), self.chroot, c))