Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to unmount DMG if RecipeRobot mounted it but gives up #87

Open
SmithersJr opened this issue Dec 4, 2015 · 1 comment
Open

Need to unmount DMG if RecipeRobot mounted it but gives up #87

SmithersJr opened this issue Dec 4, 2015 · 1 comment
Assignees

Comments

@SmithersJr
Copy link

Dragging the [OneDrive for Business for Mac Preview DMG](https://download.microsoft.com/download/D/9/8/D98389DB-5946-412C-A0A6-44808C19F99C/OneDriveForBusinessMacPreview.dmg, https://www.microsoft.com/en-us/download/confirmation.aspx?id=45519) to Recipe Robot fails:


                      -----------------------------------
                     |   Welcome to Recipe Robot v1.0.   |
                      -----------------------------------
                                \   _[]_
                                 \  [oo]
                                   d-||-b
                                     ||
                                   _/  \_

Processing /Users/username/Downloads/OneDriveForBusinessMacPreview.dmg ...
Input path looks like a disk image.
    Successfully mounted disk image
Checking whether package is signed...
    Package is signed
Getting developer from pkg signature...
    Developer is: Microsoft Corporation
Getting package signature authority names...
    3 authority names recorded
Expanding package to look for clues...
    Package expanded to: /Users/username/Library/Caches/Recipe Robot/2015-12-04_13-24-42_705123/expanded
Getting information from PackageInfo file...
    Bundle identifier: com.microsoft.pkg.OneDriveBusinessMac
    Install location: /Applications
    Install filename: Applications
Extracting the package payload to see if we can find an app...
    Did not find an app in the package payload
[ERROR] I wasn't able to determine the name of this app, so I can't make any recipes.
[ERROR] 
                                    _[]_
                                    [xx]
                                   q-||-p
                                     ||
                                   _/  \_

�[0m

The problem is that Recipe Robot cleans up its cache but doesn't unmount the DMG (which is not visible in Finder). So, the user can't open the DMG until they umount /Volumes/OneDriveBusinessMacInstaller/.

@homebysix
Copy link
Owner

Under normal circumstances, if the dmg inspection completes successfully, the disk image should be unmounted. (As instructed here.) However, I think the problem you've discovered relates to the fact that Recipe Robot is unable to find an app in the downloaded dmg file. Right now, that's a fatal error, but it doesn't throw the standard LogLevel.ERROR because there's hope that someday we'll detect things other than apps. (A pkg file that installs a QuickLook plugin for example.)

I'll keep this issue open to remind me that when we improve the pkg inspection engine, we should make sure to tie up the loose ends when errors occur.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants