changeset 260:c05872c59977

use setup .lst files for getting ignore libs.
author hanwen <hanwen@xs4all.nl>
date Sun, 18 Dec 2005 11:22:31 +0100
parents daac0acb3f70
children a975ba64def7
files specs/installer.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/specs/installer.py	Sun Dec 18 11:22:08 2005 +0100
+++ b/specs/installer.py	Sun Dec 18 11:22:31 2005 +0100
@@ -153,8 +153,10 @@
 		
 		
 	def get_ignore_libs (self):
-		(root, dirs, files) = os.walk (self.settings.installdir + '/darwin-sdk-root/usr/lib').next ()
-		d =  dict ([(os.path.join ('/usr/lib', f), True) for  f in files])
+		list_file = self.settings.system_root + '/etc/setup/darwin-sdk.lst.gz'
+		for l in gzip.GzipFile(list_file).readlines ():
+			if re.match (r'^\./usr/lib/', l):
+				d[l[:-1]] = True
 		return d
 	
 	def create (self):