Commit Graph

4948 Commits

Author SHA1 Message Date
Greg Neagle a612055a67 Fix issue with warning messages in the main log where they are prepended with 'WARNING: WARNING: ' 2025-12-26 21:15:39 -08:00
Greg Neagle db904b7eb3 More tweaks to output and logging when runScript has an error when running a script 2025-12-26 09:56:06 -08:00
Greg Neagle 8fe7105e31 Fix issue with error messages in the main log where they are prepended with 'ERROR: ERROR: ' 2025-12-26 09:21:22 -08:00
Greg Neagle 818d7b9113 Simplify implementation of ScriptRunner class and make runScript's output in case of error more specific 2025-12-26 09:01:11 -08:00
Greg Neagle 69c78cdc19 Restructure plistutilsTests 2025-12-25 09:19:40 -08:00
Greg Neagle e49f07482a Restructure fetchTests 2025-12-25 09:14:27 -08:00
Greg Neagle 17017b863f Restructure scriptutilsTests 2025-12-25 09:11:27 -08:00
Greg Neagle 78b2941576 Restructure cliutilsTests 2025-12-25 09:04:40 -08:00
Greg Neagle db40de9605 Some restructuring of urlsTests 2025-12-25 08:59:06 -08:00
Greg Neagle 5d4091cf00 Add tests for comparing versions in plists 2025-12-25 08:58:21 -08:00
Greg Neagle 93e42cb449 catalogs: implement bestVersionMatch function 2025-12-25 08:09:50 -08:00
Greg Neagle c700f25914 Add some tests for scriptutils 2025-12-24 10:33:55 -08:00
Greg Neagle aa60d7421b Add some basic tests for cliutils 2025-12-24 09:55:17 -08:00
Greg Neagle 3ff701fe83 runCliAsync now trims trailing newlines of final output and error to match the behavior of runCLI 2025-12-24 09:54:48 -08:00
Greg Neagle dd7c84ca74 Add some tests around invalid predicates 2025-12-24 09:02:27 -08:00
Greg Neagle f76ea8ca17 Add some tests for plistutils 2025-12-24 08:50:20 -08:00
Greg Neagle f5001e9d06 swiftformat fix 2025-12-24 08:49:54 -08:00
Greg Neagle ea3640fdb3 Add tests for some manifests functions 2025-12-23 20:52:05 -08:00
Greg Neagle 80028c8946 Add some tests for urls functions; make some fixes based on that testing 2025-12-23 20:21:37 -08:00
Greg Neagle da08178993 Remove some odd text from opening comment block 2025-12-23 13:27:29 -08:00
Greg Neagle f21ae6d2a5 Add some tests for fetch's headerDictFromList() 2025-12-23 13:24:28 -08:00
Greg Neagle 90e09b090d Add copyright and license info to a few source files 2025-12-23 13:23:32 -08:00
Greg Neagle 781b873522 When logging preflight/postflight output, replace tab with four space indent 2025-12-18 15:07:38 -08:00
Greg Neagle 21cdb46252 Move trailingNewlineTrimmed String protocol extension to shared/utils/stringutils.swift 2025-12-18 13:57:33 -08:00
Greg Neagle 59eef33312 When loggig external script stdout or stderr, prepend each line with a timestamp and indent 2025-12-18 13:46:28 -08:00
Per Olofsson 2c6a69b82d Handle newlines in script output better (#1294)
* Trim newlines on script output

* Attempt to handle newlines better in output from embedded scripts

* Handle empty lines
2025-12-18 13:09:21 -08:00
Greg Neagle 1408294c02 Bump versions of MSC.app helper apps (MunkiStatus.app and munki-notifier.app) 2025-12-18 10:55:29 -08:00
Greg Neagle c650a1f421 Bump version of MSC.app for future release 2025-12-18 10:51:08 -08:00
Marnin d99ed6571e Adjust width for pending updates to display horizontally (#1297) 2025-12-18 10:48:47 -08:00
Greg Neagle 967233c17a makepkginfo: add --version-script to the list of options that does not require an installer item 2025-12-18 10:16:20 -08:00
Greg Neagle 50359b5730 When getting values for CatalogURL, ManifestURL, PackageURL, IconURL, and ClientResourceURL from preferences, ignore the value if it is an empty string. Causes Munki 7's behavior here to more closely match that of Munki 6 and earlier. 2025-12-18 09:03:11 -08:00
Greg Neagle e12ae90a7c When posting a new Notification Center notification, make sure any previous notifications are removed 2025-12-16 07:51:11 -06:00
Greg Neagle 6dd7f443f0 When building http(s) headers from AdditionalHttpHeaders, properly handle header values that contain : characters. Addresses #1296 2025-12-15 22:45:05 -06:00
Greg Neagle f0a1384407 Bump version for future release. 2025-12-15 22:43:03 -06:00
Greg Neagle 83accce636 Merge branch 'Munki7dev' 2025-12-02 09:38:09 -08:00
Elliot Jordan 4f4ae55c39 Custom environment should be set if present (#1292) v7.0.4 2025-11-26 09:17:10 -08:00
Greg Neagle ad77ae8813 Improved parsing of filepaths for several makepkginfo/munkiimport options. Addresses #1291 2025-11-20 17:09:51 -08:00
Greg Neagle 775f700a52 swiftformat tweaks 2025-11-20 11:13:25 -08:00
Greg Neagle 5f37590fc8 Address issue with empty installs arrays and determining if some version is installed, or there's any evidence something is installed 2025-11-20 11:11:33 -08:00
Greg Neagle 3ee1118aee When checking installation state, ignore empty installs arrays 2025-11-20 11:01:51 -08:00
Greg Neagle dfce4ae91a Add more installation state tests: identifies an issue with empty installs array 2025-11-20 10:56:22 -08:00
Greg Neagle 9aac35be6e makepkginfo/munkimport: Don't fail silently if we can't read a script file 2025-11-20 10:55:26 -08:00
Greg Neagle 7b27823cde Bump version for future release 2025-11-15 08:48:49 -08:00
Greg Neagle b99be14db4 When downloading icons, instead of checking for the existence of any filename extension, check for an extension in a list of supported extensions. Addresses #1290 2025-11-15 08:47:29 -08:00
Greg Neagle 26ee757c76 Remove functions for generating startosinstall pkginfo 2025-11-13 11:21:56 -08:00
Greg Neagle d26c99a9e3 Remove 'startosinstall' as a supported value for --installer-type 2025-11-13 11:14:41 -08:00
Greg Neagle e2bb5dd0b8 Update warning message when there are startosinstall items in the managed_installs 2025-11-13 11:07:33 -08:00
Greg Neagle 6c7cc11d87 Update debug message to indicate startosinstall items will not be installed 2025-11-13 11:06:14 -08:00
Greg Neagle e9e6d6f61a Remove code to create startosinstall items 2025-11-13 11:04:24 -08:00
Greg Neagle bdcf4ad2d7 Update list of no-longer-supported installer_types in installItem function to current list 2025-11-13 10:50:14 -08:00