Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > b0a8ae1550f7fa249b9819f8e37d3c96 > files > 1

skim-1.4.5-5mdv2009.0.src.rpm

--- skim-1.4.5/bksys/generic.py~	2008-02-22 10:25:24.000000000 +0800
+++ skim-1.4.5/bksys/generic.py	2008-02-22 10:29:43.000000000 +0800
@@ -287,7 +287,8 @@
 			ret=self.env.Program(self.p_localtarget, self.p_localsource)
 			if not self.env.has_key('NOAUTOINSTALL'):
 				ins=self.env.bksys_install(self.instdir, ret)
-				if self.perms: self.env.AddPostAction(ins, self.env.Chmod(ins, self.perms))
+				if ins and self.perms:
+					for i in ins: self.env.AddPostAction(ins, self.env.Chmod(str(i), self.perms))
 		elif self.type=='staticlib' or self.type=='convenience':
 			ret=self.env.StaticLibrary(self.p_localtarget, self.p_localsource)
 
@@ -513,7 +514,8 @@
 		if not destfile: install_list = env.Install(lenv.join(basedir,subdir), lenv.make_list(files))
 		elif subdir:     install_list = env.InstallAs(lenv.join(basedir,subdir,destfile), lenv.make_list(files))
 		else:            install_list = env.InstallAs(lenv.join(basedir,destfile), lenv.make_list(files))
-		if perms and install_list: lenv.AddPostAction(install_list, lenv.Chmod(install_list, perms))
+		if perms and install_list:
+			for i in install_list: lenv.AddPostAction(install_list, lenv.Chmod(str(i), perms))
 		env.Alias('install', install_list)
 		return install_list