[Erp5-report] r41215 lucas - /erp5/trunk/utils/erp5.appliance.test/src/test.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Dec 8 12:58:34 CET 2010


Author: lucas
Date: Wed Dec  8 12:58:34 2010
New Revision: 41215

URL: http://svn.erp5.org?rev=41215&view=rev
Log:
On CentOS /etc/lsb-release is not a file.

Modified:
    erp5/trunk/utils/erp5.appliance.test/src/test.py

Modified: erp5/trunk/utils/erp5.appliance.test/src/test.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.appliance.test/src/test.py?rev=41215&r1=41214&r2=41215&view=diff
==============================================================================
--- erp5/trunk/utils/erp5.appliance.test/src/test.py [utf8] (original)
+++ erp5/trunk/utils/erp5.appliance.test/src/test.py [utf8] Wed Dec  8 12:58:34 2010
@@ -193,7 +193,7 @@ def getDistributionList():
       '/etc/redhat-lsb',
       '/etc/redhat-release',
       ]:
-    if os.path.exists(distro_file):
+    if os.path.exists(distro_file) and not os.path.isdir(distro_file):
       for line in open(distro_file).readlines():
         line = line.strip()
         if line not in detected_list:



More information about the Erp5-report mailing list