Commit Graph

103 Commits

Author SHA1 Message Date
Greg Neagle 09af1c23c6 Don't crash when parsing an item name that endds with a hyphen 2020-07-02 13:26:44 -07:00
Nate Walck e7ffb40518 Pass pkginfo through to middleware so additional context is available (#966)
* Pass pkginfo through to middleware so additional context is available

* fix typo

* Add pkginfo to get_url()
2020-01-12 12:41:45 -08:00
Greg Neagle 72a0535d0d Update Copyright dates 2020-01-01 08:53:37 -08:00
Greg Neagle 25f7af52d6 Be more careful when attempting to get stored SHA hash of downloaded icons 2019-12-20 09:58:43 -08:00
Greg Neagle e20a7c7e63 When getting available license seats in Python 3, make sure data passed to FoundationPlist.readPlistFromString is a byte array. Addresses #957. 2019-11-03 22:44:08 -08:00
Greg Neagle ebdefe4fc0 Attempt to autodetect repo url if repo URL is undefined _or_ is the insecure default. Addresses an issue in 3.6.3 release where autodetect was skipped. 2019-10-14 09:05:43 -07:00
Greg Neagle 3cd9b1aa21 Protect against receipt items that are missing the version key 2019-08-08 10:38:07 -07:00
Greg Neagle 16f4f7f9a1 Improved logic for adding items to the lists of fully installed and partially installed items in analyze_installed_pkgs. Addresses here: https://groups.google.com/d/msg/munki-discuss/o9peEXeOZf8/s6ffgmriEwAJ 2019-07-25 16:41:16 -07:00
Greg Neagle 7ff576f159 Python 3 compatibility fixes 2019-07-13 18:21:54 -07:00
Greg Neagle cc3da0983c Fix some version sorting issues 2019-06-24 15:49:11 -07:00
Greg Neagle 58df97e74f display detail on retreived manifest name. requires at least one -v 2019-06-23 18:48:07 -07:00
Greg Neagle 6730fbb74a Fix some bytes vs unicode handling for Python 3 compatibility 2019-06-23 17:48:03 -07:00
Greg Neagle 0dddb5dbd5 Lots of Python 3 compatibility changes for munkilib 2019-06-22 22:19:39 -07:00
Greg Neagle d5183b6556 More Python 3 compatibility changes 2019-06-22 18:56:34 -07:00
Greg Neagle 137e4d135e Merge branch 'master' into Munki3dev 2019-06-06 08:16:05 -07:00
Greg Neagle e704e283c9 More tweaks/improvements to autodetection of Munki repo URL 2019-06-06 08:15:38 -07:00
Greg Neagle e8874a48ed Merge branch 'master' into Munki3dev 2019-06-05 13:49:55 -07:00
Greg Neagle af24245232 Address crashing issue if SCDynamicStoreCopyValue(None, 'State:/Network/Global/DNS') returns None 2019-06-05 13:49:32 -07:00
Greg Neagle 97a64a1eb5 PyLint cleanups 2019-05-05 09:51:59 -07:00
Greg Neagle 4f51efc324 More octal literal fixes for Python 3 compatibility 2019-05-03 22:14:00 -07:00
Greg Neagle df60207145 Add 'from __future__ import absolute_import' to all files to enforce Python3-style imports 2019-05-03 21:34:56 -07:00
Greg Neagle 531d99a01a Convert all print statements to Python3-compatible print functions 2019-05-03 19:47:37 -07:00
Elliot Jordan 2ad27ff411 Align except clauses with PEP 3110 (#933)
This should work for Python 2.6+, including 3.
https://www.python.org/dev/peps/pep-3110/#compatibility-issues
2019-05-03 15:05:13 -07:00
dcoobs 731dbfadb9 Fix output typo in manifestutils.py (#929) 2019-04-16 11:34:31 -07:00
Elliot Jordan d14c4304ea Various typo fixes and spelling corrections (#907)
* Fixed "No Comment" typo in strings files

* Fix "problem updates" typo

* Fix "caught" typo

* Fix "pseudo" typo

* Fix "instantiated" typo

* Fix "explicitly" typo

* Fix "osascript" typo

* Spelling fixes and various other corrections

* Fix two more instances of "Logput"

* Fixed a few remaining spelling issues in python files

* Fix "because" typo

PR also submitted upstream to the Murky project for the same correction.

* Fix name of associated app

* Additional spelling corrections in comments/docstrings
2019-02-14 08:30:43 -08:00
Greg Neagle 80a844eb13 If an item to be precached contains PackageURL or PackageCompleteURL keys, store those for use by the precaching agent. 2019-01-15 11:55:17 -08:00
Greg Neagle 125e9c6471 Precaching improvements so that managedsoftwareupdate won't remove partially precached items, and that precache_agent is stopped when managedsoftwareupdate does an updatecheck 2019-01-09 08:23:00 -08:00
Greg Neagle 42a291436d Fix logic error in download.uncache() function that caused it to check filesize for not-yet-downloaded items 2019-01-08 10:58:16 -08:00
Greg Neagle 4f44643a4a Also precache items where precache=True and needs_update=True 2019-01-03 09:39:34 -08:00
Greg Neagle 918d0b7391 Update copyright dates 2019-01-02 10:31:50 -08:00
Greg Neagle 75c6e0ac87 Merge branch 'swiftapps' into Munki3dev 2018-12-04 08:16:19 -08:00
aysiu 7161744729 Copy optional key precache (#879)
Needed to not delete precache OnDemand items after installation
2018-11-20 20:45:50 -08:00
Greg Neagle 05d274c279 Merge branch 'Munki3dev' into swiftapps 2018-11-16 16:20:33 -08:00
Greg Neagle d37f47830f Only start precache_agent if we think we have something to cache; add some more logging messages around starting the precache_agent 2018-11-16 16:20:06 -08:00
Greg Neagle 8b1e2ba9ac Remove duplicated functions in munkilib/updatecheck/download.py due to bad merge confict resolution 2018-11-16 11:46:37 -08:00
Greg Neagle b3e33b34ac Merge branch 'Munki3dev' into swiftapps 2018-11-16 11:08:32 -08:00
Greg Neagle c72e69f8d5 Add uncaching when disk is almost full, preventing downloads of managed_installs because of precached items 2018-11-16 10:59:35 -08:00
Greg Neagle 46b634b594 New precaching.uncache function to clear out precached items if there's not enough space to download and install managed items 2018-10-31 10:08:41 -07:00
Greg Neagle 019f73d761 Safer determination of short hostname; Raise a GurlError instead of allowing an unhandled exception if a download rename fails 2018-08-15 13:48:55 -07:00
Greg Neagle ce6bc92dce Safer determination of short hostname; Raise a GurlError instead of allowing an unhandled exception if a download rename fails 2018-08-15 13:48:29 -07:00
Greg Neagle ad16841277 Merge precaching changes 2018-08-07 15:26:18 -07:00
Greg Neagle 0c03c28b05 precaching changes
Added precache_agent and code to run it at the end of a Munki updatecheck. Updated make_munki_mpkg* scripts to include
the new precache_agent in the core package.
2018-07-18 14:21:33 -07:00
Greg Neagle 9d7733ea24 Merge branch 'no-serveserve-symlink' into Munki3dev 2018-06-19 09:45:22 -07:00
Greg Neagle 18ef54ca00 Don't allow user-writable SelfServiceManifest to be a symlink 2018-06-18 14:42:52 -07:00
Greg Neagle 4bc577bb97 When checking for evidence of installation when evaluating a managed_uninstall, do not be fooled by an empty installs array. 2018-05-30 13:55:15 -07:00
Greg Neagle 0bf8d5d23c When checking for evidence of installation when evaluating a managed_uninstall, do not be fooled by an empty installs array. 2018-05-30 13:54:50 -07:00
Greg Neagle 2d0e4797c5 Don't crash if DomainName is not set in the current network configuration when attempting to auto-detect the repo URL 2018-05-30 08:10:32 -07:00
Greg Neagle ff0832fdf3 Don't crash if DomainName is not set in the current network configuration when attempting to auto-detect the repo URL 2018-05-30 08:10:01 -07:00
Greg Neagle b6a21b3809 Start of precaching support. 2018-05-06 21:58:15 -07:00
Greg Neagle ceb3e347bb Merge branch 'aysiu-precache' into precaching 2018-05-06 15:29:08 -07:00