aboutsummaryrefslogtreecommitdiff
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* Don't autodetect bash and env-update at configure timeUlrich Müller2023-05-112-3/+2
| | | | | | | | | | | | * bin/eselect.in: Update shebang to use EPREFIX. Bug 905934. * bin/Makefile.am (dosed): Don't substitute BASH. * libs/package-manager.bash.in (env_update): Don't use an absolute path for env-update. * libs/Makefile.am (dosed): Don't substitute ENV_UPDATE. * configure.ac: Drop checks for bash and env-update paths. Bug: https://bugs.gentoo.org/905934 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Don't substitute PORTAGEQ in libsUlrich Müller2023-05-111-1/+0
| | | | | | | * libs/Makefile.am (dosed): Don't substitute PORTAGEQ, it no longer exists in configure. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Allow to specify modules by pathFlorian Schmaus2023-03-141-1/+10
| | | | | | | | | * libs/core.bash.in (find_module): Allow to specify an absolute path as the module's filename. Bug: https://bugs.gentoo.org/901205 Signed-off-by: Florian Schmaus <flow@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Recognise loongarch*/loong in package-manager libUlrich Müller2021-08-241-1/+2
| | | | | | * libs/package-manager.bash.in (arch): Recognise loongarch*/loong. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update copyright years.Ulrich Müller2020-12-1611-11/+11
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Support relative pathnames in editor-variable library.Ulrich Müller2019-09-021-17/+30
| | | | | | | | | | | | * 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>
* Update copyright years.Ulrich Müller2019-02-1311-11/+11
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Output warning messages in yellow.Ulrich Müller2019-02-131-2/+2
| | | | | | | * libs/output.bash.in (colours): Display warning messages in yellow, in order to distinguish from errors which are red. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update copyright notices to follow the new policy.Ulrich Müller2018-09-1611-11/+11
|
* New get_libdir function.Ulrich Müller2018-05-292-1/+9
| | | | | | | | * libs/multilib.bash.in (get_libdir): New function. * doc/developer-guide.txt: Describe it. * libs/Makefile.am (dosed): Substitute @libdir@. * misc/eselect-mode.el (eselect-mode-keywords-multilib): Add get_libdir.
* Update arch list in package-manager list.Ulrich Müller2018-01-231-17/+17
| | | | | * libs/package-manager.bash.in (arch): Restore sparc64 which was lost in a previous update. Sync with arch.list in the gentoo repo.
* Update copyright years.Ulrich Müller2018-01-0811-11/+11
|
* Make eval die.Ulrich Müller2017-12-251-2/+1
| | | | | * libs/core.bash.in (eval): Make it fatal again, after more than one year of transition time.
* Whitespace.Ulrich Müller2017-06-181-17/+17
|
* Fix mapping for nios2 in package-manager lib.Ulrich Müller2017-06-181-1/+1
| | | | | * libs/package-manager.bash.in (arch): Map nios2 to nios2 (as it is called in profiles/arch.list) rather than nios.
* Update copyright years.Ulrich Müller2017-03-2211-11/+11
|
* Fill out arch matches a bit more in package-manager lib.Mike Frysinger2017-03-211-6/+8
| | | | | * libs/package-manager.bash.in (arch): Fill out arch matches a bit more.
* Fix pkgcore support.Ulrich Müller2016-12-041-2/+2
| | | | | * libs/package-manager.bash.in (get_repositories) (get_repo_news_dir): Fix pinspect calls, bug 304011.
* Disable eval again.Ulrich Müller2016-10-311-0/+6
| | | | | | | | * libs/core.bash.in (eval): Disable eval again, because the workaround for the rc module (sourcing functions.sh) is no longer needed. See also 2005-05-15 change by ciaranm. This partially reverts commit 76867bf1a47570cd9548100caed519252b5ced5a.
* Ignore comment lines when parsing config files.Ulrich Müller2016-10-301-3/+5
| | | | | * libs/config.bash.in (store_config): Ignore comment lines in config files and make parsing more robust, bug 598480.
* Avoid absolute paths for programs.Ulrich Müller2016-06-012-4/+4
| | | | | | | | * configure.ac: Where possible, use AC_CHECK_PROGS instead of AC_PATH_PROGS, in order to avoid absolute paths, bug 122260. * libs/core.bash.in (sed): * libs/package-manager.bash.in (portageq): Invoke commands with "command" so that they will work without a path.
* Happy new year 2016!Ulrich Müller2016-01-2711-11/+11
|
* Happy new year 2015!Ulrich Müller2015-01-1711-11/+11
|
* Remove redundant $@ in "for" loops throughout.Ulrich Müller2014-08-282-2/+2
| | | | | | | | | | * 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.
* Use "%" instead of "," as delimiter for sed.Ulrich Müller2014-05-201-4/+4
| | | | | | * bin/Makefile.am (dosed): * libs/Makefile.am (dosed): * man/Makefile.am (dosed): Use "%" instead of "," as delimiter.
* Don't output spurious whitespace in write_kv_list_entry.Ulrich Müller2014-03-141-1/+7
| | | | | * libs/output.bash.in (write_kv_list_entry): Don't output spurious trailing whitespace if value is an empty string.
* Recognise arm64 in package-manager lib.Ulrich Müller2014-01-191-0/+1
| | | | * libs/package-manager.bash.in (arch): Recognise aarch64*/arm64.
* Happy new year 2014!Ulrich Müller2014-01-1911-11/+11
|
* Don't reset output mode in default do_help().Ulrich Müller2013-11-191-1/+0
| | | | * libs/default.eselect.in (do_help): Don't reset output mode.
* Suppress wrapping of lines in brief output mode, bug 490882.Ulrich Müller2013-11-151-4/+9
| | | | | | * libs/output.bash.in (write_kv_list_entry): Suppress wrapping of lines in brief output mode, in order to make automatic parsing easier. Bug 490882.
* More cosmetic changes in output.bash.Ulrich Müller2013-11-151-8/+5
|
* Implement space function more efficiently.Ulrich Müller2013-11-101-4/+3
| | | | * libs/output.bash.in (space): Implement more efficiently.
* Cosmetic changes in output.bash.Ulrich Müller2013-11-101-16/+16
|
* Function 'colours' accepts an argument. Remove 'nocolours'.Ulrich Müller2013-10-251-21/+20
| | | | | | | * libs/output.bash.in (colours): Accept an argument and handle both enabling and disabling of colour output. (nocolours): Remove function. * bin/eselect.in: Call 'colours' with appropriate argument.
* Move es_find_module function to core library.Ulrich Müller2013-10-211-1/+14
| | | | | * bin/eselect.in (es_find_module): Move function to core library. * libs/core.bash.in (find_module): Rename and simplify.
* Declare IFS as local variable.Ulrich Müller2013-08-064-11/+8
| | | | | | | | | | * 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.
* Move skel.bash documentation from developer guide to the library itself.Ulrich Müller2013-07-091-14/+28
| | | | | | * doc/developer-guide.txt: * libs/skel.bash.in: Move skel.bash documentation to the library itself.
* 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>.
* Work around bash crashing on Darwin, bug 475284.Ulrich Müller2013-07-061-2/+2
| | | | | | | * bin/eselect.in: Save stderr only in bash 4.1 or later, where automatically assigned file descriptors are available. Using a fixed descriptor makes bash crash on Darwin, bug 475284. * libs/core.bash.in (die): Test for saved file descriptor.
* Workaround for ARCH in prefix/linux profiles, bug 473542.Ulrich Müller2013-06-171-0/+13
| | | | | * libs/package-manager.bash.in (arch): Workaround for incorrect definition of ARCH in prefix/linux profiles, bug 473542.
* Update comment for relative_name function.Ulrich Müller2013-03-021-1/+2
|
* Restore stderr in die() function, bug 451150.Ulrich Müller2013-01-131-1/+4
| | | | | | | * bin/eselect.in (ESELECT_STDERR): Save stderr file descriptor. * libs/core.bash.in (die): Restore stderr, otherwise there would be no output if die was called while stderr is redirected. Fixes bug 451150. Thanks to Michał Górny <mgorny@gentoo.org>.
* Whitespace and quoting.Ulrich Müller2013-01-131-14/+14
|
* Rewrite arch() fallback code in package-manager lib.Ulrich Müller2013-01-051-28/+64
| | | | | | | | | | | * libs/package-manager.bash.in (arch): Complete rewrite of the fallback code if there is no make.profile symlink. It now relies on bash variables HOSTTYPE and OSTYPE which are derived from the standard GNU triplet. The previous implementation had used uname which would query the kernel, while we need the userland. This fixes a problem on ppc with 64 bit kernel and 32 bit userland. Thanks to Brent Baude <ranger@gentoo.org> and Raúl Porcel <armin76@gentoo.org> for the suggestion.
* Whitespace.Ulrich Müller2013-01-051-6/+7
|
* Happy new year 2013!Ulrich Müller2013-01-0411-11/+11
|
* Recognise profiles whose names contain a hyphen, bug 437986.Ulrich Müller2012-10-111-1/+1
| | | | | | | * libs/package-manager.bash.in (arch): Add amd64 as case label. * modules/profile.eselect (set_symlink): Include underscore and hyphen in regexp, because both are allowed in keyword names, bug 437986. Thanks to Yuta Satoh <nigoro.gentoo@0x100.com>.
* Prefix /etc/profile with EROOT in output message, bug 429960.Ulrich Müller2012-09-151-1/+2
| | | | | | * libs/editor-variable.bash.in (do_set): * modules/locale.eselect (do_set): Output message only if ROOT is /, and prefix /etc/profile with EROOT, bug 429960.
* Remove SVN keywords throughout.Ulrich Müller2012-03-0711-11/+11
|
* Show versions of eselect and of module in default.eselect.Ulrich Müller2012-02-181-2/+4
| | | | svn path=/trunk/; revision=874