Commit Graph

131 Commits

Author SHA1 Message Date
Greg Neagle b48598b31a Fix for getPrimaryManifest; cleanUpManifestsDir now uses general-purpose cleanUpDir function 2024-08-18 17:52:29 -07:00
Greg Neagle 0e71af42e9 cleanUpIconsDir now uses general-purpose cleanUpDir function; downloadCatalog now returns nil if downloar fails 2024-08-18 17:50:59 -07:00
Greg Neagle ab3c6fdc59 New general-purpose function to clean up various Munki directories 2024-08-18 17:49:12 -07:00
Greg Neagle 1691110eb2 Implement remaining updatecheck/download functions 2024-08-16 14:01:44 -07:00
Greg Neagle bc91b870ee Better algorithm for cleaning up icons dir 2024-08-16 14:00:48 -07:00
Greg Neagle 0737922a86 Implement getManifest function 2024-08-16 11:24:41 -07:00
Greg Neagle dbceb984c8 Start on precaching support 2024-08-16 11:23:59 -07:00
Greg Neagle e32cb9c303 Update PlistError to comply with LocalizedError (to make it easier to get descriptions) 2024-08-16 11:23:04 -07:00
Greg Neagle f0af5a885f More implementation of updatecheck/download functions; refactoring of parts of network/fetch; adding support for localizedDescription to MunkiError and FetchError 2024-08-16 09:14:46 -07:00
Greg Neagle 17989ccbc5 Add initial implmentation of updatecheck/download; Update for new capabilites of convenience function managedInstallsDir() 2024-08-15 11:00:56 -07:00
Greg Neagle 5615a2c64b Slight tweak of exitDescription in checkServer() 2024-08-15 08:29:24 -07:00
Greg Neagle 51cbb2a0cf Implement fetch checkServer function; re-work error types in fetch 2024-08-14 17:12:46 -07:00
Greg Neagle decd9b8cd6 Remove some debugging code 2024-08-14 16:58:25 -07:00
Greg Neagle cd425afc48 Silence some compiler warnings triggered by swiftformat re-formatting 2024-08-14 12:44:47 -07:00
Greg Neagle 14acaec20d Fix headerDictFromList() to strip leading and trailing spaces from header values 2024-08-14 12:41:54 -07:00
Greg Neagle c01abc420c Implement more fetch functions 2024-08-14 12:04:04 -07:00
Greg Neagle 6f2521a8be swiftformat re-formatting 2024-08-14 11:56:41 -07:00
Greg Neagle 280a74e816 Fix typo in comment 2024-08-14 11:55:11 -07:00
Greg Neagle 8c44ea0ed3 Fix redirect handling for 'https' value 2024-08-14 11:54:38 -07:00
Greg Neagle aec8cd7c36 Fix issue where file was downloaded again even if unchanged 2024-08-14 10:06:53 -07:00
Greg Neagle c0e6787732 Begin implmentation work on fetch functions 2024-08-14 08:19:34 -07:00
Greg Neagle 3a5f40bcbe Change MunkiError to a class so it can be subclassed 2024-08-14 08:18:39 -07:00
Greg Neagle 49481055b3 Actually store the retreived, normalixe headers 2024-08-14 08:17:39 -07:00
Greg Neagle 4505eaf961 Implement custom logging in gurl 2024-08-12 07:03:12 -07:00
Greg Neagle 87c95755db Add support for resuming partial downloads and for downloading only if changed 2024-08-11 16:27:05 -07:00
Greg Neagle 76552536b8 Start implmentation of http(s)/network code 2024-08-10 17:31:24 -07:00
Greg Neagle a4412274b7 Implement more xattr functions 2024-08-10 17:29:01 -07:00
Greg Neagle 9c0b490d13 Implement more info functions 2024-08-10 17:28:07 -07:00
Greg Neagle 2705302840 Resolve a couple TODOs in shared/installer/core 2024-08-10 10:47:19 -07:00
Greg Neagle 24b7ff4412 Begin implementation of some manifest functions 2024-08-10 10:46:23 -07:00
Greg Neagle f19aa35637 Add predicate evaluation functions 2024-08-09 16:46:33 -07:00
Greg Neagle 127b9ff71c Reorganization of the project folders 2024-08-09 15:40:55 -07:00
Greg Neagle e09adaea57 Split info.swift into info, appinventory, and facts 2024-08-09 15:35:38 -07:00
Greg Neagle deaf367f02 Reorg shared/info.swift; adjust appData() implmentation to make it more consistent with Python version 2024-08-09 15:28:19 -07:00
Greg Neagle 14430c9c5a Make use of new managedInstallsDir() function 2024-08-09 14:24:39 -07:00
Greg Neagle 27771ba796 Implement more info functions 2024-08-09 14:23:56 -07:00
Greg Neagle bee6e7c310 Add some concurrency to getMachineFacts() 2024-08-08 12:05:29 -07:00
Greg Neagle ec8c4b67ae Implement getMachineFacts() 2024-08-08 11:53:40 -07:00
Greg Neagle 616ae32717 Add getOSBuild function to shared/info.swift 2024-08-08 11:01:23 -07:00
Greg Neagle 587ea4cfe1 Add availableDiskSpace function to shared/info.swift 2024-08-08 10:46:16 -07:00
Greg Neagle c8fdc11de0 More info functions 2024-08-08 10:05:45 -07:00
Greg Neagle 874145a3cb Implement more info functions 2024-08-08 09:19:14 -07:00
Greg Neagle c46be1d07e Implement more info functions 2024-08-07 16:20:24 -07:00
Greg Neagle 7110d5c6e4 Silence a compiler warning about non-mutated value 2024-08-07 16:19:36 -07:00
Greg Neagle e47059b79e Minor tweak 2024-08-07 16:18:21 -07:00
Greg Neagle e679ad79cd Move where power management assertion reason messages are defined 2024-08-07 16:17:44 -07:00
Greg Neagle 27c4cab276 Safer handling of choicesXML when installing a package 2024-08-07 16:16:21 -07:00
Greg Neagle 56848845af Add timeout support for running an async subprocess 2024-08-07 16:14:49 -07:00
Greg Neagle fde98df265 Fix for getting app path from url 2024-08-07 10:59:31 -07:00
Greg Neagle 44bea67ad4 Starting on info functions 2024-08-07 10:47:30 -07:00