fixup for hardlink()

This commit is contained in:
Will Woods 2011-05-10 15:50:32 -04:00
parent 4c91ef5f53
commit d2203b348d

View File

@ -234,7 +234,7 @@ class TemplateRunner(object):
self.treeinfo(section, "initrd", dest) self.treeinfo(section, "initrd", dest)
def hardlink(self, src, dest): def hardlink(self, src, dest):
if isdir(dest): if isdir(self._out(dest)):
dest = join(dest, basename(src)) dest = join(dest, basename(src))
os.link(self._out(src), self._out(dest)) os.link(self._out(src), self._out(dest))