Commit Graph

1783 Commits

Author SHA1 Message Date
Greg Neagle 727636f184 repoclean: Fix for deleting pkginfo items 2017-03-16 08:33:46 -07:00
Greg Neagle fa3a5b4e5d FileRepo: add IOError to the except clause for all file operations 2017-03-16 08:27:20 -07:00
Greg Neagle 96d2bfcdf0 Update repoclean to work with repo plugins 2017-03-15 16:36:27 -07:00
Greg Neagle e697441de4 munkiimport: If plugin is not given at the CLI or available via preferences, set options.plugin to 'FileRepo' so it is properly forwarded to makecatalogs 2017-03-15 08:59:08 -07:00
Greg Neagle aa437f7895 munkiimport: special case handling of FileRepo (and children) when 'importing' a pkg already in the repo's pkgs directory 2017-03-15 08:46:10 -07:00
Greg Neagle 16e3dc0220 Properly determine expected self.root for fileshare repos 2017-03-14 10:49:07 -07:00
Greg Neagle 70f2800170 munkiimport: Minor wording change when printing warnings/errors at the end of a makecatalogs run 2017-03-14 07:12:22 -07:00
Greg Neagle 790db4f9ae In cli admin tools, fix for clearing a preference; previously it would be ignored 2017-03-14 07:11:16 -07:00
Greg Neagle e042a2c8d5 Move many functions shared by the various cli tools to munkilib/cliutils.py 2017-03-13 08:03:23 -07:00
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