Commit Graph

1774 Commits

Author SHA1 Message Date
Greg Neagle
553eb503e9 munkiimport: Add a TODO 2017-03-11 19:40:21 -08:00
Greg Neagle
a9f1bf672c For an API repo, munkiimport can now forward the repo.authtoken to makecatalogs 2017-03-11 18:59:22 -08:00
Greg Neagle
31c9b661b8 remove uneeded osutils.cleanUpTmpDir() calls 2017-03-11 18:58:35 -08:00
Greg Neagle
d1d3f5dcd2 Move code that uses FileRepo as a default if no repo is specified to munkilib/munkirepo/__init__.py 2017-03-11 09:06:09 -08:00
Greg Neagle
a5a9c9e73d Get rid of global variables; improve handling of options that could be defined in prefs or via cli options 2017-03-11 08:55:49 -08:00
Greg Neagle
d6daa25623 Add missing trailing parentheses 2017-03-11 08:09:27 -08:00
Greg Neagle
861b0f29c3 MWA2APIRepo: Add DEBUG flag to control amount of data added to some CurlErrors 2017-03-10 16:39:28 -08:00
Greg Neagle
753815feae FileRepo: raise a RepoError exception if we can't create the mountpoint when mounting a remote repo. 2017-03-10 16:38:11 -08:00
Greg Neagle
51d8623391 Fix for version() subcommand function 2017-03-10 14:04:11 -08:00
Greg Neagle
46376a27c8 manifestutil: handle the following cases 1) no /path/to/repo; 2) no --repo-url 3) Existing repo_path preference 2017-03-10 13:43:10 -08:00
Greg Neagle
bcf53074df makecatalogs: handle the following cases 1) no /path/to/repo; 2) no --repo-url 3) Existing repo_path preference 2017-03-10 13:29:43 -08:00
Greg Neagle
60bea033cf Extra caution to always default to FileRepo if plugin value is None or '' 2017-03-10 12:16:37 -08:00
Greg Neagle
c1a345b1ad Another fix for 'empty' repo plugin for manifestutil 2017-03-10 12:13:29 -08:00
Greg Neagle
368309c258 Update GitFileRepo to work as new-style repo plugin 2017-03-10 11:52:01 -08:00
Greg Neagle
0e3746d151 Merge branch 'Munki3' into new_repo_abstraction 2017-03-10 11:10:29 -08:00
Greg Neagle
86fbd6299c Avoid modifying NSDictionary when recording pending update dates. Fixes #720 2017-03-10 11:10:01 -08:00
Greg Neagle
d181ab4e7d manifestutil: when connecting to a repo, if plugin is undefined, use FileRepo 2017-03-10 10:34:53 -08:00
Greg Neagle
f327063a07 Merge branch 'Munki3' into new_repo_abstraction 2017-03-10 09:02:53 -08:00
Greg Neagle
056b570d3b Change featured_installs to featured_items 2017-03-10 09:02:03 -08:00
Greg Neagle
d13a6c9926 Update prompt text for --configure 2017-03-10 06:59:27 -08:00
Per Olofsson
d958fda1cb Add warning for featured but not optional installs. 2017-03-10 09:14:57 +01:00
Greg Neagle
112aa3caa2 munkiimport: Remove prompt for repo_path 2017-03-09 18:38:51 -08:00
Greg Neagle
3faffc46d3 Updated comments 2017-03-09 18:38:04 -08:00
Greg Neagle
9319d8d943 FileRepo: update doc strings and comments 2017-03-09 17:02:22 -08:00
Greg Neagle
a895587e68 MWA2APIRepo: Large PUT/POST/PATCH request get written to a local file before being handed to curl 2017-03-09 17:01:40 -08:00
Greg Neagle
5f7dd2fe03 MWA2APIRepo: properly handle pkgs and icons uploads 2017-03-09 16:05:31 -08:00
Greg Neagle
237a1fa365 manifestutil --configure now prompts for plugin 2017-03-09 14:10:57 -08:00
Greg Neagle
5a7db2091f MWA2APIRepo: Properly quote resource identifiers as URL fragments 2017-03-09 14:09:37 -08:00
Greg Neagle
b9fbbf118d --help option for subcommands no longer exits with an unhandled MyOptParseExit exception 2017-03-09 13:27:13 -08:00
Greg Neagle
9496f1a1ef manifestutil now works with new-style FileRepo plugin 2017-03-09 13:15:16 -08:00
Greg Neagle
c3402ffce2 Minor naming changes 2017-03-09 10:17:47 -08:00
Greg Neagle
1ddc07141f Make iconiporter work with new-style repo plugins 2017-03-09 10:17:17 -08:00
Per Olofsson
c773ebe7ac Implement featured_installs array in manifests. 2017-03-09 13:25:48 +01:00
Greg Neagle
f9ac3c776b makecatalogs and munkiimport working with new-style FileRepo plugin 2017-03-08 21:53:46 -08:00
Greg Neagle
8596709e2b FileRepo: when getting a itemlist, skip directories snd files that start with a . 2017-03-08 21:52:35 -08:00
Greg Neagle
9f3434c388 munkiimport working with new-style repo plugins 2017-03-08 13:54:13 -08:00
Greg Neagle
d4ecc08a14 First commits of new-style repo plugins 2017-03-08 09:23:58 -08:00
Greg Neagle
f47cd6ac1a Fix several incorrect .encode() methods called on strings returned from subprocess .readline() -- replace with .decode() method 2017-03-05 07:49:41 -08:00
Greg Neagle
0829c2406c Fix several incorrect .encode() methods called on strings returned from subprocess .readline() -- replace with .decode() method 2017-03-05 07:49:02 -08:00
Greg Neagle
c8915ed85d GitFileRepo: git log message now includes the name of the command-line tool in use if possible 2017-03-04 20:54:00 -08:00
Greg Neagle
8d6b468d9d Fuller example implementation of GitFileRepo 2017-03-04 20:00:53 -08:00
Greg Neagle
ba0cb7c836 Missed an instance variable rename 2017-03-04 20:00:20 -08:00
Greg Neagle
a3c001e550 Update manifestutil to use the new munkirepo plugin structure 2017-03-04 08:29:44 -08:00
Greg Neagle
0fb1d3cefa Begin reorg of repo plugins code 2017-03-04 08:19:29 -08:00
Greg Neagle
d6efe8b75f munkiimport: Properly record plugin in REPO_PLUGIN global and pass it to makecatalogs if/when we call it 2017-03-03 21:49:33 -08:00
Rick Heil
003f2489b9 Add exception handling to middleware import
Adds a simple try/except block to the middleware import to handle errors
that may result from bad middleware syntax. While this won't allow a
full run to happen, it will at least run preflight/postflight.
2017-03-02 13:49:18 -08:00
Greg Neagle
0b1a1f344a managedsoftwareupdate: Remove munkicommon import; replace with refactored modules 2017-03-02 11:01:27 -08:00
Greg Neagle
92f5c895ae munkiimport: Remove munkicommon import; replace with refactored modules 2017-03-02 10:33:08 -08:00
Greg Neagle
9878259dbc manifestutil: remove import of munkicommon; replace with new refactored modules 2017-03-02 10:13:35 -08:00
Greg Neagle
1b874c3e06 makepkginfo: Remove import of munkicommon; add imports of refactored modules 2017-03-02 10:00:01 -08:00