Commit Graph

14 Commits (2858d24acb1f593dd3849ade68fc29c48fec8cee)

Author SHA1 Message Date
Dmitry Marakasov a6ee449d6b Improve documentation for pkgng module (#2338)
According to module checklist:

- Descriptions should always start with a Capital letter and end with a
  full stop.
- Ensure that you make use of U() for urls, C() for files and options,
  I() for params, M() for modules.
2016-12-08 11:34:19 -05:00
Brian Coca beabafa99f minor fixes
removed unused imports
rearranged basic import
added if/main for testing/importability
2016-12-08 11:34:19 -05:00
Dmitry Marakasov 472bf733e0 Freebsd pkgng autoremove support (#2324)
* Whitespace cleanup

* Add autoremove capability to pkgng

* Add "default" and "choices" documentnation items for autoremove
2016-12-08 11:34:18 -05:00
Joerg Fiedler 518b03d73f add chroot flag to pkgng in order to allow installation of packages into chroot environments, e.g. jails (#1218) 2016-12-08 11:34:04 -05:00
Michael Scherer 2a0c9bb3a2 Use type 'path' for rootdir, for pkgng 2016-12-08 11:34:01 -05:00
Toshio Kuratomi ad0d2c1747 Update for modules which import json.
Some do not use the json module directly so don't need import json.
Some needed to fallback to simplejson with no traceback if neither was installed

Fixes #1298
2016-12-08 11:33:44 -05:00
Toshio Kuratomi 9c75b5eac3 Make the pkg/name param into a list so that changes to make changes to _squash_items easier 2016-12-08 11:33:31 -05:00
Charlie Root e852df1c0a Add rootdir option to pkgng 2016-12-08 11:33:03 -05:00
Greg DeKoenigsberg c65a612d1f Changes to author formatting, remove emails 2016-12-08 11:32:51 -05:00
Toshio Kuratomi 4f07e8b256 Many more doc fixes 2016-12-08 11:32:40 -05:00
Matt Martz 8bd5757720 Fix up modules that have python24 syntax error 2016-12-08 11:32:36 -05:00
Matthew Pherigo 11a68b4cad Make $BATCH=yes the default, remove module option 2016-12-08 11:32:25 -05:00
Matthew Pherigo 5664da4c63 pkgng: add 'batch' parameter
Some packages attempt to prompt the user for certain settings during
installation. Thus, this parameter sets the environment variable
$BATCH to 'yes', which forces package installation scripts to accept
default values for these interactive prompts. This should work for all
prompts that have a default value and aren't implemented through a
custom script (as this variable is built into the ports/package system).

FIXME: Package install should fail if it prompts and batch isn't set;
currently, the install hangs indefinitely.
TODO: Allow user to specify the answers to certain prompts.

I (github.com/mwpher) have NOT tested this with any packages besides
bsdstats. It's a small improvement, but not a complete answer to all
the complexities of package installation.
2016-12-08 11:32:24 -05:00
Michael DeHaan 7d6ceb4f06 Reorganization. 2016-12-08 11:32:19 -05:00