aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Display only a warning when selecting an experimental profileUlrich Müller2023-09-091-5/+3
| | | | | | | | * modules/profile.eselect (set_symlink): Selecting an experimental profile without --force is no longer a fatal error. Bug 913480. Bug: https://bugs.gentoo.org/913480 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update lists in editor and visual modulesUlrich Müller2023-08-072-4/+4
| | | | | | | | | * modules/editor.eselect (EDITOR_LIST): * modules/visual.eselect (EDITOR_LIST): Add vim; drop ed, ex, vi and xemacs. Bug 911792. Bug: https://bugs.gentoo.org/911792 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* env.eselect: Fix typos in commentsUlrich Müller2023-06-121-3/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* env.eselect: More robust file type detectionUlrich Müller2023-06-121-4/+5
| | | | | | | | * modules/env.eselect (is_envfile): Make detection of text file more robust. Bug 908401. Bug: https://bugs.gentoo.org/908401 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* New "update" action in kernel moduleFlorian Schmaus2023-03-151-1/+70
| | | | | | | | | | | | | | | | * modules/kernel.eselect (do_update, describe_update) (describe_update_options): New action, attempts to update the /usr/src/linux symlink to point to the sources of the running kernel. Bug 901209. * man/kernel.eselect.5: Document it. Thanks to ulm for helpful suggestions when working on this functionality. Bug: https://bugs.gentoo.org/901209 Signed-off-by: Florian Schmaus <flow@gentoo.org> [Tweaked bash syntax. Fixed highlighting in man page.] Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Fix canonicalise call in profile moduleUlrich Müller2022-01-071-2/+3
| | | | | | | | * modules/profile.eselect (set_symlink): Don't call canonicalise with an empty argument, bug 830707. Bug: https://bugs.gentoo.org/830707 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Don't use absolute paths in visual moduleUlrich Müller2021-10-241-5/+2
| | | | | | * modules/visual.eselect (EDITOR_LIST): Don't use absolute paths. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* news.eselect: Support "new" and "all" options in list actionUlrich Müller2021-02-191-4/+17
| | | | | | | | | * modules/news.eselect (do_list): Recognise "new" and "all" options, bug 771075. (describe_list_options): New function. Bug: https://bugs.gentoo.org/771075 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update copyright years.Ulrich Müller2020-12-1612-12/+12
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* rc.eselect: Test for regular file.Ulrich Müller2020-04-231-0/+1
| | | | | | | | * modules/rc.eselect (is_script): Test whether the script is a regular file, bug 718920. Bug: https://bugs.gentoo.org/718920 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* rc.eselect: Add missing quotes.Ulrich Müller2019-11-281-3/+3
| | | | | | | | * modules/rc.eselect (show_script_status): Quote strings to prevent globbing, bug 701382. Bug: https://bugs.gentoo.org/701382 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Support relative pathnames in editor-variable library.Ulrich Müller2019-09-022-7/+2
| | | | | | | | | | | | * libs/editor-variable.bash.in (find_in_path): New function, looks up its first argument in EDITOR_PATH, and tests if it exists. (find_targets, do_set): Use it. * modules/pager.eselect (EDITOR_LIST): * modules/editor.eselect (EDITOR_LIST): Don't use absolute paths. * man/editor.eselect.5: * man/pager.eselect.5: Update. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Allow specification of news item by its name.Ulrich Müller2019-05-261-10/+32
| | | | | | | | * modules/news.eselect (do_read, do_unread): Allow specification of item by its number or name. (describe_read_options, describe_unread_options): Document it. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update copyright years.Ulrich Müller2019-02-1312-12/+12
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Warn about deprecated profiles.Ulrich Müller2019-02-131-0/+7
| | | | | | | * modules/profile.eselect (set_symlink): Warn about deprecated profiles, bug 673568. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update copyright notices to follow the new policy.Ulrich Müller2018-09-1612-12/+12
|
* Workaround for OpenRC commands not in PATH in rc module.Ulrich Müller2018-01-241-1/+1
| | | | | * modules/rc.eselect (show_script_status): Add /lib64/rc/bin to PATH as well, workaround for bug 645240 until OpenRC is fixed.
* Require --force option when selecting an experimental profile.Ulrich Müller2018-01-091-1/+6
| | | | | * modules/profile.eselect (set_symlink): Require --force option when selecting an experimental profile.
* Show the profiles' status in the profile module's list output.Ulrich Müller2018-01-091-9/+14
| | | | | | | | * modules/profile.eselect (find_targets): Add a fourth field for the profiles' status to the output. (set_symlink): Account for the change in find_targets. (do_list): Also show the profiles' status, but only in non-brief output mode. Bug 643864.
* Update copyright years.Ulrich Müller2018-01-0812-12/+12
|
* Check for valid news item format.Ulrich Müller2017-12-251-10/+20
| | | | * modules/news.eselect (do_list): Check for valid news item format.
* Fix regex in profile module.Ulrich Müller2017-05-221-1/+1
| | | | * modules/profile.eselect (set_symlink): Fix regex, bug 614008.
* Improved error checking in kernel module.Ulrich Müller2017-05-061-16/+16
| | | | | | | | * modules/kernel.eselect (do_set): Don't remove the old symlink before we know that we have a valid new target. Simplify. (set_symlink): Check if the new link target is valid, then remove any old symlink, then set the new one. (remove_symlink): Use rm -f.
* Check range of number in kernel and profile modules.Ulrich Müller2017-05-062-0/+4
| | | | | | * modules/kernel.eselect (set_symlink): * modules/profile.eselect (set_symlink): Check range of number, bug 617572. Thanks to Takuto Yoshida <otakuto.gentoo@gmail.com>.
* Update copyright years.Ulrich Müller2017-03-2212-12/+12
|
* Check return status of package manager calls in news module.Ulrich Müller2016-12-041-2/+6
| | | | | * modules/news.eselect (find_items, find_repo_dir): Check return status of package manager calls, bug 601506.
* Prefer less to more in pager module.Ulrich Müller2016-06-161-1/+1
| | | | | * modules/pager.eselect (EDITOR_LIST): Prefer less to more. * man/pager.eselect.5: Update.
* Happy new year 2016!Ulrich Müller2016-01-2712-12/+12
|
* Remove binutils module.Ulrich Müller2015-08-132-262/+0
| | | | | | | | * modules/binutils.eselect: * man/binutils.eselect.5: Module removed. This has been converted to a wrapper and moved to the binutils-config package, bug 507870. * modules/Makefile.am (modules_DATA): * man/Makefile.am (man_MANS): Update accordingly.
* Clean up coding style in rc module.Ulrich Müller2015-01-181-33/+25
|
* Improve is_script test in rc module.Ulrich Müller2015-01-181-5/+6
| | | | | * modules/rc.eselect (is_script): Don't call external programs. Test if script is executable, with a shebang in its first line.
* Be compatible with new OpenRC in rc module.Ulrich Müller2015-01-171-2/+2
| | | | | | * modules/rc.eselect: Be compatible with new OpenRC, bug 536822. (is_script): Test for "openrc-run" or "runscript" in shebang line. (run_runscript): Omit the interpreter when executing the script.
* Happy new year 2015!Ulrich Müller2015-01-1713-13/+13
|
* Changed heuristic for recognising kernel source trees.Ulrich Müller2014-08-281-2/+2
| | | | | | | * modules/kernel.eselect (find_targets): Changed heuristic for recognising kernel source trees: Check for both Makefile and Kconfig being present, but don't require digits in the directory name any more. Bug 516754.
* Remove redundant $@ in "for" loops throughout.Ulrich Müller2014-08-283-10/+10
| | | | | | | | | | * libs/core.bash.in (inherit): * libs/tests.bash.in (has): * modules/config.eselect (generic_handle_one_file, accept_handler) (merge_handler, display_handler): * modules/news.eselect (find_items, do_list, do_read, do_unread): * modules/rc.eselect (run_runscript, do_show): Remove redundant $@ in "for" loops throughout.
* Fix bash 4.3 breakage.Ulrich Müller2014-05-241-1/+1
| | | | | * modules/profile.eselect (get_repos): Fix bash 4.3 breakage, bug 511132.
* Suppress C and POSIX as languages in news module; support _<territory>.Ulrich Müller2014-02-251-3/+8
| | | | | * modules/news.eselect (accepted_languages): Suppress "C" and "POSIX" in output. Support <language>_<territory>.
* Set PATH to service_* commands in rc module.Ulrich Müller2014-02-091-0/+1
| | | | | * modules/rc.eselect (show_script_status): Set proper PATH to service_* commands.
* Do not source functions.sh in rc module, bug 373219.Ulrich Müller2014-02-091-15/+2
| | | | | | | | * modules/rc.eselect (get_runlevel): Call "rc-status -r" directly, in order to avoid sourcing functions.sh, bug 373219. Remove baselayout-1 compatibility code. (source_rc_functions): Remove function. (do_show): Don't call source_rc_functions.
* Happy new year 2014!Ulrich Müller2014-01-1913-13/+13
|
* New local option --only-names in modules list action.Ulrich Müller2013-11-151-4/+12
| | | | | | | | | | | * modules/modules.eselect (do_list): New local option --only-names will output names of modules only, without their description. This replaces the previous brief output mode behaviour and is mainly intended for bash completion. (describe_list_options): New function, documents --only-names. * bin/eselect.in (es_do_help): Don't force default output mode. * misc/eselect.bashcomp (_eselect): Call "eselect modules list" with --only-names option.
* Silence profile symlink warning when using --force, bug 491216.Michael Marineau2013-11-141-0/+1
| | | | | | | | | When building packages in an alternate ROOT that doesn't need to be perfectly configured as a stand-alone system it is reasonable for PORTDIR to be shared with the host system and not inside of ROOT. Also when using eselect in automated scripts (to take advantage of repo_name:foo/profile/path parsing) it feels clunky to have to emit "Please ignore the following warning" messages to avoid scaring people.
* Drop baselayout-1 compatibility code.Ulrich Müller2013-08-241-6/+1
| | | | | * modules/rc.eselect (source_rc_functions): Drop baselayout-1 compatibility code.
* Declare IFS as local variable.Ulrich Müller2013-08-062-14/+10
| | | | | | | | | | * libs/config.bash.in (store_config): * libs/default.eselect.in (show_usage_message): * libs/editor-variable.bash.in (do_set): * libs/output.bash.in (write_kv_list_entry): * modules/env.eselect (create_profile_env, create_prelink_conf): * modules/news.eselect (do_list, do_read): Declare IFS as local variable.
* Remove bashcomp module, bug 476992.Ulrich Müller2013-07-162-208/+0
| | | | | | * modules/bashcomp.eselect: Remove. * modules/Makefile.am (modules_DATA): Remove bashcomp.eselect. * Makefile.am (symlinks): Don't install bashcomp-config symlink.
* kernel.eselect: Check for Makefile in target tree, bug 460328.Ulrich Müller2013-07-141-3/+5
| | | | | | * modules/kernel.eselect (find_targets, set_symlink, do_show): Consider target trees as valid only if they contain a Makefile, bug 460328. Thanks to C.J. Wijtmans <cj.wijtmans@gmail.com>.
* Fix return status in editor-variable lib and locale module, bug 473308.Ulrich Müller2013-07-071-2/+4
| | | | | | * libs/editor-variable.bash.in (do_set): * modules/locale.eselect (do_set): Don't return bad status when ROOT is nontrivial, bug 473308. Thanks to <smkbot@gmail.com>.
* Honour PORTAGE_CONFIGROOT in profile module, bug 453006.Ulrich Müller2013-02-221-2/+3
| | | | | * modules/profile.eselect (get_symlink_location): Create profile symlink below PORTAGE_CONFIGROOT, bug 453006.
* Happy new year 2013!Ulrich Müller2013-01-0414-14/+14
|
* Use EROOT in profile module to make it work in Prefix, bug 444620.Ulrich Müller2012-12-061-2/+2
| | | | | | * modules/profile.eselect (get_repos, get_repo_path): Use EROOT to make it work in Prefix, fixes bug 444620. Thanks to Greg Turner <gmturner007@ameritech.net> for bug report and patch.