Fix for copyFromDMG: when copying an item not at the root of the DMG, the path of the copy destination was not being determined properly, leading to "No such file or directory" errors when setting owner, group and mode of the destination item.

git-svn-id: http://munki.googlecode.com/svn/trunk@1200 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
Greg Neagle
2011-05-25 21:11:32 +00:00
parent 51f79798e1
commit f2c74b3bcf
+1 -1
View File
@@ -380,7 +380,7 @@ def copyFromDMG(dmgpath, itemlist):
"Error copying %s to %s" %
(itempath, destpath))
destitem = os.path.join(destpath, itemname)
destitem = os.path.join(destpath, os.path.basename(itemname))
if retcode == 0:
# set owner