Skip to content

Commit

Permalink
Fix test for Deferred Apple updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gregneagle committed Jan 6, 2023
1 parent 252fa78 commit dc7c9ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions code/client/munkilib/appleupdates/au.py
Expand Up @@ -159,15 +159,15 @@ def get_recommended_updates(self, suppress_scan=False):
recommended_updates = su_prefs.pref('RecommendedUpdates') or []
processed_updates = []
for item in su_results.get('updates', []):
for update in recommended_updates:
# if we find a matching update, update the item info and
# add it to the list of recommended updates
if (item.get('Title') == update.get('Display Name') and
item.get('Version') == update.get('Display Version') and
item.get('Deferred') != "YES"
):
item.update(update)
processed_updates.append(item)
if item.get('Deferred') != "YES":
for update in recommended_updates:
# if we find a matching update, update the item info and
# add it to the list of recommended updates
if (item.get('Title') == update.get('Display Name') and
item.get('Version') == update.get('Display Version')
):
item.update(update)
processed_updates.append(item)
return processed_updates

def get_apple_updates(self, suppress_scan=False):
Expand Down
2 changes: 1 addition & 1 deletion code/client/munkilib/version.plist
Expand Up @@ -3,6 +3,6 @@
<plist version="1.0">
<dict>
<key>CFBundleShortVersionString</key>
<string>6.0.1</string>
<string>6.0.2</string>
</dict>
</plist>

0 comments on commit dc7c9ee

Please sign in to comment.