v1.4
版本发布时间: 2019-11-26 07:09:15
autopkg/autopkg最新发布版本:v3.0.0RC2(2023-09-26 00:05:31)
1.4 (November 25, 2019)
FIXES:
- DmgMounter now correctly handles APFS disk images, especially with EULAs/SLAs (https://github.com/autopkg/autopkg/commit/4b77f6d5948a2f36258f4695f503513ec7671745)
ADDITIONS:
- The new URLGetter base Processor class has been merged in. It provides a new centralized way to handle fetching and downloading things from the web. In the future, more convenience functions will be added to allow any custom processor to easily fetch web resources without having to write their own urllib/web-handling code.
- Thanks to @MichalMMac's heroic efforts, URLGetter is now much easier for other processors to use. There are now two ways a custom processor can download things without needing to write any urllib logic:
-
URLGetter.download_with_curl(curl_command,)
takes a curl command as an argument (a list of strings that is passed to subprocess). You can use this along with the other helper functions to arrange your own curl command with custom headers and arguments, and parse the output. -
URLGetter.download(url, headers=None)
takes a URL (and optional headers) and returns the output of the curl command. You can use this to simply retrieve the results of requesting a web page (such as for URLTextSearcher).
-
- All custom processors that need to make a web request of any kind in autopkg/recipes have been switched to using URLGetter's methods. No more urllib in processors!
- URLDownloader now has a new
prefetch_filename
option that will allow fetching the original name from the redirected URL (https://github.com/autopkg/autopkg/pull/571) - GitHub calls now successfully function through proxies (https://github.com/autopkg/autopkg/issues/416)
1、 autopkg-1.4.pkg 96.6KB