[LDTP-Dev] [PATCH] fix for build problem with Ubuntu, Debian distributions

J Premkumar jpremkumar at novell.com
Fri Oct 28 07:54:05 PDT 2005


Hi

I have attached patch for fixing the build issue we have been facing
with Ubuntu, Debian distributions. 

Casanova, can you please use this patch and check if you are able to
build the deb package with localization support for ldtp 0.2.1.

Thanks
Premkumar J

--- pyldtp/setup.py	2005-10-22 16:32:59.000000000 +0530
+++ PYLDTP/pyldtp/setup.py	2005-10-28 19:57:28.000000000 +0530
@@ -37,7 +37,7 @@ status, data = commands.getstatusoutput 
 if status == 0:
     tmp = string.split (data, '-L')
     for i in tmp:
-        if i == '':
+        if i.strip () == '':
             continue
         else:
             lib_path.insert (0, string.strip (i))
@@ -48,7 +48,7 @@ status, data = commands.getstatusoutput 
 if status == 0:
     tmp = string.split (data, '-l')
     for i in tmp:
-        if i == '':
+        if i.strip () == '':
             continue
         else:
             lib_name.insert (0, string.strip (i))
@@ -60,7 +60,7 @@ status, data = commands.getstatusoutput 
 if status == 0:
     tmp = string.split (data, '-I')
     for i in tmp:
-        if i == '':
+        if i.strip () == '':
             continue
         else:
             inc_path.insert (0, string.strip (i))

-------------- next part --------------
--- pyldtp/setup.py	2005-10-22 16:32:59.000000000 +0530
+++ PYLDTP/pyldtp/setup.py	2005-10-28 19:57:28.000000000 +0530
@@ -37,7 +37,7 @@ status, data = commands.getstatusoutput 
 if status == 0:
     tmp = string.split (data, '-L')
     for i in tmp:
-        if i == '':
+        if i.strip () == '':
             continue
         else:
             lib_path.insert (0, string.strip (i))
@@ -48,7 +48,7 @@ status, data = commands.getstatusoutput 
 if status == 0:
     tmp = string.split (data, '-l')
     for i in tmp:
-        if i == '':
+        if i.strip () == '':
             continue
         else:
             lib_name.insert (0, string.strip (i))
@@ -60,7 +60,7 @@ status, data = commands.getstatusoutput 
 if status == 0:
     tmp = string.split (data, '-I')
     for i in tmp:
-        if i == '':
+        if i.strip () == '':
             continue
         else:
             inc_path.insert (0, string.strip (i))


More information about the Ldtp-dev mailing list