From e51491de8938c506d83215540d53531749cde1aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Sat, 15 Oct 2005 11:03:25 +0000 Subject: [PATCH] * fix: make dest_dir work with env_update --- pisi/util.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pisi/util.py b/pisi/util.py index ac176737..8b457ca1 100644 --- a/pisi/util.py +++ b/pisi/util.py @@ -485,11 +485,12 @@ def env_update(): f.write("export %s=\"%s\"\n" % (key, keys[key])) f.close() - # generate ld.co.conf + # generate ld.so.conf f = open(ldconf_file, "w") - for path in keys["LDPATH"].split(":"): - f.write("%s\n" % path) + if keys.has_key("LDPATH"): + for path in keys["LDPATH"].split(":"): + f.write("%s\n" % path) f.close() # run ldconfig - run_batch("/sbin/ldconfig -X -r /") + run_batch("/sbin/ldconfig -X -r %s" % ctx.config.dest_dir())