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

Display app versions #45

Merged
merged 3 commits into from
Sep 17, 2016
Merged

Display app versions #45

merged 3 commits into from
Sep 17, 2016

Conversation

rodionovd
Copy link
Contributor

Re: #43

for update in updates {
print("\(update.itemIdentifier) \(update.title) (\(update.bundleVersion))")
if let installed = softwareMap.productForBundleIdentifier(update.bundleID) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice. This has made me realise a better way to do the multi-upgrade "is installed" checks

if let installed = softwareMap.productForBundleIdentifier(update.bundleID) {
print("\(update.itemIdentifier) \(update.title) (\(installed.bundleVersion) -> \(update.bundleVersion))")
} else {
print("\(update.itemIdentifier) \(update.title) (\(update.bundleVersion))")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to see some kind of indicator that this update is pending even though the app store can't find the currently installed version (seems like it shouldn't happen)

Perhaps:

print("\(update.itemIdentifier) \(update.title) (unknown -> \(update.bundleVersion))")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this situation is unlikely to happen, but let's make it "unknown" just in case

Copy link
Contributor Author

@rodionovd rodionovd Sep 17, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, it's done

@argon argon merged commit 96d6e5e into mas-cli:master Sep 17, 2016
@rodionovd rodionovd deleted the display-app-versions branch September 17, 2016 17:19
@rodionovd rodionovd mentioned this pull request Sep 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants