[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r18795 - gnunet-update/gnunet_update
From: |
gnunet |
Subject: |
[GNUnet-SVN] r18795 - gnunet-update/gnunet_update |
Date: |
Sat, 24 Dec 2011 14:49:02 +0100 |
Author: harsha
Date: 2011-12-24 14:49:02 +0100 (Sat, 24 Dec 2011)
New Revision: 18795
Modified:
gnunet-update/gnunet_update/util.py
Log:
-fixed crash due to /sbin/ldconfig not being in path
Modified: gnunet-update/gnunet_update/util.py
===================================================================
--- gnunet-update/gnunet_update/util.py 2011-12-23 20:13:25 UTC (rev 18794)
+++ gnunet-update/gnunet_update/util.py 2011-12-24 13:49:02 UTC (rev 18795)
@@ -1,5 +1,5 @@
# This file is part of GNUnet.
-# (C) 2001--2011 Christian Grothoff (and other contributing authors)
+# (C) 2011 Christian Grothoff (and other contributing authors)
#
# GNUnet is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
@@ -199,7 +199,13 @@
return: List of dependency objects existing on the system
"""
if _test_input is None: # This block is not tested in unit test cases
- proc = subprocess.Popen(["ldconfig", "-p"], stdout=subprocess.PIPE)
+ try:
+ proc = subprocess.Popen(["/sbin/ldconfig", "-p"],
+ stdout=subprocess.PIPE)
+ except OSError as (errno, errstr):
+ print "Error while running /sbin/ldconfig: " + errstr
+ print "/sbin/ldconfig should be executable by the user running
install"
+ exit (-1)
(ldconfig_output, ldconfig_err) = proc.communicate()
proc.stdout.close()
parsed_dep_list = parse_ldconfig_output(ldconfig_output)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r18795 - gnunet-update/gnunet_update,
gnunet <=