Expect a tuple (dest_name, copied) from 'copy_file()'.

This commit is contained in:
Greg Ward 2000-09-30 17:34:50 +00:00
parent ff50ad53a9
commit e564278bfd
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ class install_data (Command):
self.warn("setup script did not provide a directory for "
"'%s' -- installing right in '%s'" %
(f, self.install_dir))
out = self.copy_file(f, self.install_dir)
(out, _) = self.copy_file(f, self.install_dir)
self.outfiles.append(out)
else:
# it's a tuple with path to install to and a list of files
@ -63,7 +63,7 @@ class install_data (Command):
dir = change_root(self.root, dir)
self.mkpath(dir)
for data in f[1]:
out = self.copy_file(data, dir)
(out, _) = self.copy_file(data, dir)
self.outfiles.append(out)
def get_inputs (self):

View File

@ -41,7 +41,7 @@ class install_headers (Command):
self.mkpath(self.install_dir)
for header in headers:
out = self.copy_file(header, self.install_dir)
(out, _) = self.copy_file(header, self.install_dir)
self.outfiles.append(out)
def get_inputs (self):