aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* layman/config.py: Fix py3.7, py3.8 ConfigParser errorBrian Dolbec2020-04-241-1/+1
| | | | | | | Newer pythons require string defaults only. The final config instance variable is either a NoneType or list Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* Removes unnecessary "_db" appendage to db_type varDevan Franchini2015-07-171-1/+1
| | | | | | | To avoid namespace collisions in py2.7 the database modules needed to have "_db" appended to their name. In order to avoid having this ugliness in the user's config file and elsewhere in layman's code the DbBase class simply adds the "_db" portion of the name itself.
* Renames db module "xml" to "xml_db"Devan Franchini2015-07-101-1/+1
| | | | This prevents namespace collisions with the required xml class.
* layman.cfg, config.py: Adds db_type option to configurationDevan Franchini2015-07-091-0/+1
|
* Renames protocol_order to protocol_filterDevan Franchini2015-03-261-1/+1
| | | | | | | | | The config/cli flag name "protocol_order" has been changed to "protocol_filter" in an attempt to provide a more suitable name for users. The description of the option has been altered as well to provide a more fitting elaboration on what the option actually does. overlay.py: Calls filter_protocols from self to prevent run-time errors.
* config.py: Adds "protocol_order" to config defaultsDevan Franchini2015-03-071-0/+1
|
* config.py: Changes default conf_type to "repos.conf"Devan Franchini2015-03-071-1/+1
|
* {config, reposconf}.py: Modifies import strategy for config parserDevan Franchini2015-02-021-2/+2
| | | | | | Importing the config parser based on hex version has been implemented to ensure that layman is bringing in the correct config parse class. For more information, see: https://bugs.gentoo.org/528752
* Removes doctest remnantsDevan Franchini2014-10-171-10/+0
|
* config.py: Fixes output use in proxies()Devan Franchini2014-09-201-1/+2
| | | | | | | | This patch was supplied by Maxim Odinintsev (gwynn@devc.net) to properly use layman's output from it's private _options variable. X-Gentoo-Bug: 523258 X-Gentoo-Bug-URL: https://bugs.gentoo.org/523258
* config.py: Blanks out squashfs_commandDevan Franchini2014-08-161-2/+3
| | | | | | | | | | | | Due to squashfs not needing to run a command aside from mount and umount (which are handled by the Mounter() class), the config option was set to a blank value. layman.cfg: Reflects change to squashfs_command option with explanation to user. config.py: Also removes clean_tar from the true false check in favor of the clean_archive config option.
* config.py: Adds squashfs_* config optsDevan Franchini2014-08-151-0/+4
|
* Centralizes common archive overlay codeDevan Franchini2014-08-151-1/+1
| | | | | | | | | | | This commit brings archive overlay code to one common place, in an attempt to make maintaining and adding archive overlay types to layman much easier. config.py: Alters the clean_tar option to clean_archive. tar.py: Removes doctest tests from tar.py as there is already an existing external.py test.
* Fixes hard-coded defaults and EPREFIXIES repos_confDevan Franchini2014-08-141-1/+1
| | | | | X-Gentoo-Bug: 519922 X-Gentoo-Bug-URL: https://bugs.gentoo.org/519922
* Adds interactive session for unofficial overlay installsDevan Franchini2014-08-131-1/+2
| | | | | | | | | | | In order to improve the communication of the risks taken from installing unofficial overlays, a config option has been created that when enabled will create an interactive session to confirm that the user is aware that they are installing an unofficial overlay. X-Gentoo-Bug: 315359 X-Gentoo-Bug-URL: https://bugs.gentoo.org/315359
* external.py: Adds CreateConfig() test to test suiteDevan Franchini2014-08-101-18/+0
| | | | config.py: Removes doctests.
* config.py: Adds output attribute for OptionConfigDevan Franchini2014-07-311-0/+5
|
* config.py: Improves quietness logic for OptionConfigDevan Franchini2014-06-191-2/+2
| | | | This improvement prevents KeyError exceptions.
* Adds clean_tar configuration option2.1.0Devan Franchini2014-06-141-1/+2
|
* config.py: moves EPREFIX constant to top of fileDevan Franchini2014-06-121-9/+7
|
* config.py: Adds proxies() @property functionDevan Franchini2014-06-121-1/+22
| | | | | | | Since remotedb.py and tar.py both made use of the same code that determined available proxies, the code has been moved to a function in config.py and both files have been changed to make use of this function as a value.
* overlay.py: adds update() functionDevan Franchini2014-06-121-0/+1
| | | | | | | | | | | | To update local database and overlay source urls, this function has been created to allow the overlay.type functions to update their source urls in their own methods. source.py: Adds a stub update() function for overlay types that don't have their own update() function. config.py: Adds a list of supported overlay types that have their own update() methods.
* config.py: Adds auto_sync, conf_type, and require_repoconfigDevan Franchini2014-06-121-2/+5
| | | | | Three new options have been added to give users repo config configurability.
* config.py: Adds py3 configparser supportDevan Franchini2014-06-121-1/+7
|
* Imports unicode_literals from __future__Devan Franchini2014-06-021-0/+2
| | | | Adds py2 unicode compatibility to py3.
* layman/{config, constants, output}.py: Adds notice level.Devan Franchini2014-05-071-0/+1
| | | | | | | | | The -q flag setting was being ignored by output.notice() calls. Adding note_level to the output.notice() function makes it so that the output will be quieted, if desired. X-Gentoo-Bug: 457726 X-Gentoo-Bug-URL: https://bugs.gentoo.org/457726
* Add new repository type g-sorcery created by Jauhien PiatlickiBrian Dolbec2013-08-181-0/+4
| | | From Gentoo 2013 GSOC project: Framework for automated ebuild generators.
* reduce indent levelBrian Dolbec2013-08-181-67/+70
|
* Add https connection verification.Brian Dolbec2013-08-101-1/+2
|
* Update the repositories.xml urls.Brian Dolbec2013-07-281-3/+3
|
* split out remotedb to it's own file, add gpg signed list support, some ↵Brian Dolbec2012-11-181-3/+5
| | | | pyflakes cleanup
* revert error introduced in commit 92a545dc6b64bbebfa9bc4c3788f1ae3db058788Brian Dolbec2012-10-301-1/+1
|
* Add checking for ROOT in the environment on statup, and setting it in the ↵Brian Dolbec2012-10-141-19/+27
| | | | | | appropriate paths. Add warnings for not finding the config file and installed db. Fix updaters config file path
* Update doctest data for config changes.Brian Dolbec2012-10-071-2/+2
|
* Add setting the default user name and email when adding new git based ↵Brian Dolbec2012-10-071-0/+2
| | | | overlays. Bug 433687.
* fix the BareConfig not str sub'ing %(configdir)s before calling ↵Brian Dolbec2012-04-131-4/+9
| | | | read_config(). indent fix in read_config().
* Add news reporting capability to meet GLEP 42 requirement. Brian Dolbec2012-03-101-0/+1
|
* add news reporting capability when adding/syncing overlays. Bug 388233dol-sen2011-10-261-0/+2
|
* rename local_list to installed, create an update function to migrate the change.dol-sen2011-08-241-2/+3
|
* set some options to the ones passed in that were previously missed.dol-sen2011-08-211-5/+6
|
* make EPREFIX test code eprefixy proofdol-sen2011-08-091-1/+1
|
* make it EPREFIX readydol-sen2011-08-081-11/+20
|
* fix a bug causing it to not get the correct config path.dol-sen2011-08-061-5/+5
| | | | improve debug messages, set levels to 9
* fix existing tests. add tests for new classes. rename T/F_options to ↵dol-sen2011-07-221-10/+34
| | | | lowwercase due to ConfigParser making it lowercase, creating a dupe.
* fix --quiet option.dol-sen2011-04-301-3/+3
|
* Add empty add, sync and postsync options to the defaults so they are defined.dol-sen2011-04-291-2/+26
| | | Fixes sync not working due to the addition of them in the code.
* add being able to set the OptionConfig defaults as wellBrian Dolbec2011-03-261-3/+15
|
* add a new OptionConfig subclass.Brian Dolbec2011-03-261-4/+39
| | | | improve some debug messages.
* separate out ArgsParser to it's own file and subclass BareConfigBrian Dolbec2011-02-231-355/+49
|
* import Message directly add all options to BareConfig for easy instantiation ↵Brian Dolbec2011-02-191-6/+9
| | | | with teh desired options.