jssimporter / jss_helper

jss_helper is deprecated.
GNU General Public License v3.0
66 stars 7 forks source link

jss_helper not seeing all packages in jss database #30

Closed krispayne closed 4 years ago

krispayne commented 4 years ago

Recently, the Zoom autopkg recipe (or Zoom, you never know with them) changed the package name from 'Zoom' to 'zoom.us'. jss_helper has been unable to see packages named zoom.us since then:

 420: Zoom-4.4.53909.0617.pkg
 421: Zoom-4.4.53932.0709.pkg
 422: Zoom-4.4.55313.0714.pkg
 423: Zoom-4.4.55387.0716.pkg
 424: Zoom-4.5.1.pkg
 425: Zoom-4.5.2.pkg
 426: Zoom-4.5.5416.0929.pkg
 427: Zoom-4.5.5452.1010.pkg
 428: Zoom-4.5.5666.1020.pkg
 429: Zoom-4.5.5699.1027.pkg
 430: Zoom-4.5.5735.1105.pkg
 431: Zoom-4.5.5757.1110.pkg
 432: Zoom-4.6.13614.1202.pkg
 433: Zoom-4.6.14751.1216.pkg
 434: Zoom-4.6.14768.0101.pkg
 435: Zoom Plug-In for Outlook-4.4.8301.pkg
 436: Zoom Plug-In for Outlook-4.8.2743.pkg
 437: Zoom Plug-In for Outlook-4.8.5382.pkg
 438: Zoom Plug-In for Outlook-4.8.13266.pkg
 439: Zoom Plug-In for Outlook-4.8.14688.pkg
 440: Zoom Plug-In for Outlook-4.8.17298.pkg
 441: Zoom Plug-In for Outlook-4.8.20004.pkg
 442: ZoomPresence-4.6.0.pkg

Screen Shot 2020-04-08 at 8 12 03 AM

Since jss_helper can't see those packages, it does not prompt for the policy to be updated.

If I try to run jss_helper to promote just that single policy, I'm presented with a list of all packages 'available', but the zoom.us named items are unavailable to choose.

I do see other lower-case named packages, so it shouldn't be that. I believe it's the . in the filename and that jss_helper is looking for a version number before a . ?

I'm definitely able to change the package name in my autopkg recipe if this isn't able to be solved in jss_helper

krispayne commented 4 years ago


++ jss_helper: 2.2.0b3 ++ python-jss: 2.1 ++

JSS: https://server.net:8443
Preferences: ~/Library/Preferences/com.github.autopkg.plist

Object: zoom.us does not exist!
server:RecipeOverrides autopkg$```
krispayne commented 4 years ago

looking at the get_package_info function (https://github.com/jssimporter/jss_helper/blob/master/jss_helper_lib/tools.py#L488-L506), it seems as though enough concessions have already been made and that the package name for Zoom should probably conform to the standards (i.e. Package( ,-, _)Name( ,- , _).extension)

I'll update my local override for Zoom and rename my previous packages and potentially move this issue over to the parent recipe repo.