Closed GoogleCodeExporter closed 8 years ago
Addressed here:
https://code.google.com/p/munki/source/detail?r=d94b8cfdf17b8c722861b2857fe16acd
137798f7
Original comment by gregnea...@mac.com
on 3 Sep 2014 at 3:45
makepkginfo -p also does not work.
Original comment by eriknico...@gmail.com
on 8 Sep 2014 at 9:58
More details, please.
What steps will reproduce the problem?
1. Create/download a DMG that contains "Install.app"
2. Attempt to munkiimport or makepkginfo
I did this and it works fine. The resulting pkginfo isn't very _useful_, as it
contains:
<key>items_to_copy</key>
<array>
<dict>
<key>destination_path</key>
<string>/Applications</string>
<key>source_item</key>
<string>Install.app</string>
</dict>
</array>
I'd be happy to fix issues, but I need clearer directions on how to reproduce
the thing you see as an issue.
Original comment by gregnea...@mac.com
on 8 Sep 2014 at 10:07
makepkginfo /Users/erikgomez/Desktop/foo.dmg -p
/Volumes/foo/hiddenfolder/foo.pkg
makepkginfo /Users/erikgomez/Desktop/foo.dmg -p /Volumes/foo/foo.pkg
Both instances do not work if Install.app exists.
Original comment by eriknico...@gmail.com
on 8 Sep 2014 at 10:49
Works fine as long as you provide the right path to the pkg.
makepkginfo /Users/erikgomez/Desktop/foo.dmg -p foo.pkg
makepkginfo /Users/erikgomez/Desktop/foo.dmg -p hiddenfolder/foo.pkg
You do not provide the mounted path, as there is no reliable way to make sure a
disk image is mounted at the path you might provide. (what if there is already
something mounted at "/Volumes/foo"?) You provide a _relative_ path.
From `makepkginfo --help`:
Apple Package Options:
-p PKGNAME, --pkgname=PKGNAME
If the installer item is a disk image containing
multiple packages, or the package to be installed is
not at the root of the mounted disk image, PKGNAME is
a relative path from the root of the mounted disk
image to the specific package to be installed.If the
installer item is a disk image containing an Adobe CS4
Deployment Toolkit installation, PKGNAME is the name
of an Adobe CS4 Deployment Toolkit installer package
folder at the top level of the mounted dmg.If this
flag is missing, the AdobeUber* files should be at the
top level of the mounted dmg.
Original comment by gregnea...@mac.com
on 8 Sep 2014 at 10:59
I read this multiple times before posting this and yet still misinterpreted the
wording.
"PKGNAME is a relative path from the root of the mounted disk image." Even
though it says relative path, I was getting mentally stuck on the "mounted disk
image".
Sorry about this.
Original comment by eriknico...@gmail.com
on 8 Sep 2014 at 11:36
Original issue reported on code.google.com by
eriknico...@gmail.com
on 3 Sep 2014 at 12:56