From 59fb19dbf756d0ac19fe7b0b17d374fbcfd894fe Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Wed, 1 Nov 2006 23:55:26 +0000 Subject: [PATCH] allow copying files into a dmg the manual is a .html file that needed to be copied into the dmg which required a small update to osxdist.py --- makelib/osxdist.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/makelib/osxdist.py b/makelib/osxdist.py index b6b6134..397832e 100644 --- a/makelib/osxdist.py +++ b/makelib/osxdist.py @@ -104,7 +104,10 @@ def makedmg(dirlist, volname): if d[-1] == '/': d = d[:-1] tail = os.path.split(d)[-1] - copytree(d, os.path.join(mount_point, tail)) + if (os.path.isdir(d)): + copytree(d, os.path.join(mount_point, tail)) + else: + copy(d, os.path.join(mount_point, tail)) call(['hdiutil','detach',mount_point]) call(['hdiutil','convert',rwdmg,'-format','UDZO','-o',dmg]) -- 2.30.2