mirror of
https://github.com/munki/munki.git
synced 2026-04-21 03:58:20 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user