summaryrefslogtreecommitdiff
path: root/bin/euse
AgeCommit message (Collapse)Author
2023-10-12Migrate to PEP517 meson-python buildZac Medico
Bug: https://bugs.gentoo.org/909888 Signed-off-by: Zac Medico <zmedico@gentoo.org> Closes: https://github.com/gentoo/gentoolkit/pull/36 Signed-off-by: Sam James <sam@gentoo.org>
2022-05-15euse: egrep -> grep -ESam James
egrep is considered an obsolete alias and newer greps will warn on this. Signed-off-by: Sam James <sam@gentoo.org>
2020-12-20Remove $Header$Matt Turner
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2020-12-20Remove imports from __future__Matt Turner
gentoolkit supports only Python 3.6+ now, so these are not used. Signed-off-by: Matt Turner <mattst88@gentoo.org>
2020-03-16euse: don't fail on repos missing use.descBen Kohler
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
2015-06-02euse: Fix 'grep: Unmatched ( or \(' errors with euse -iPaul Varner
2015-04-23euse: Fix PORTDIR deprecation message. Bug 505160Paul Varner
This change removes the concepts of PORTDIR and PORTDIR_OVERLAY. Portage is moving to the concept of just repositories. This fix searches all repository paths for the USE flag information.
2013-11-21Handle numbers in package namesVikraman Choudhury
Fixes bug 491764
2013-11-05euse: use portageq for get_portdir function unconditionally.Paul Varner
Newer versions of portage don't define PORTDIR in make.conf or make.defaults. Additionally, if it is defined, it can still be overridden in repos.conf. Use portageq to ensure we have the correct value.
2013-09-10Add fallback to using portageq for get_portdir function.Paul Varner
Newer versions of portage no longer define PORTDIR in make.defaults or make.conf. This change uses portageq to get the value of PORTDIR if it is not found in make.defaults or make.conf.
2013-07-08euse: fix looking up portage-2 style parent paths with empty repo nameMichael Marineau
When a parent is defined as ":path/to/profile" the blank name before the colon means the current repo, not the "gentoo" repo.
2012-12-22update 'svn' versions to 'git', not man pages with already set versions. Brian Dolbec
2012-12-19drop trailing whitespaceMike Frysinger
Should be no functional changes here. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-09-26Fix euse to always prefer /etc/portage/make.conf over /etc/make.conf. Bug 434672Paul Varner
2012-06-20Add support for the md5-cache metadata format. (Bug 422675)Paul Varner
The gentoo tree is moving to the md5-cache format instead of pms. This add support for reading the md5-cache metadata format.
2012-06-20Add support for ':' in the profiles parent file for bug 414961.Paul Varner
Bug #414961 allows ':' shorthand to resolve to the ${PORTDIR}/profiles A value before the ':' references the repository, no value means gentoo Example: local:base would refer to the profiles directory in the repository path owned by the 'local' repository
2012-05-16Change sed statement in euse to fix bug 410365.Paul Varner
The sed statement was looking for the useflag as part of the regular expression. Since the input to the statement had already grepped for the relevant entries from use.local.desc, this is unneccessary. Changed the sed statement to look for '(.*) *' instead of '(${1}) *'.
2012-04-11Remove incorrect usage of -r flage for egrep (Bug 410137).Paul Varner
2012-03-19Add patch from Vitaly Shimansky to fix regex in modify_packages()Paul Varner
2012-03-05Apply patch from Jared Hancock to disable globbing.Paul Varner
This patch disables shell globbing except where actually needed. This will hopefully fix bug 382219.
2012-02-20Update the comment for setting the overlay name.Paul Varner
2012-02-20Change overlay name to match portage when repo_name is not found.Paul Varner
2012-02-20Fix euse -i to not print errors from 'cat' when determining the repository namePaul Varner
2011-11-28Fix typo in eusePaul Varner
2011-09-07Add missing quotesChristian Ruppert
2011-08-24Fix traversal of cascading profiles by euse (Bug 379559).Paul Varner
Thanks to Ian Abbot for the patch!
2011-07-27Fix missing parenthises in euse. Bug 376393Paul Varner
2011-05-11Fix euse to treat PORTDIR the same as an overlay for purposes of printing ↵Paul Varner
the repository name.
2011-05-10Fix euse to print proper statement for egencache. Bug 366673Paul Varner
2011-04-23fix python-3 compatibility for euse bug 364081Brian Dolbec
2011-03-28Latest euse changes from Jared HancockPaul Varner
Prefers /etc/portage/make.conf when modifing global flags only if it defines the USE variable Also fixes a bug where euse would refuse to add hyphenated use flags. So you can: euse -E bash-completion
2011-02-25Fix small typoPaul Varner
2011-02-25Apply latest changes from Jared HancockPaul Varner
Fixes described issues from: http://bugs.gentoo.org/show_bug.cgi?id=259318#c88 "It's now more vocal when handling global flags, and does not indicate make.conf was edited if it was not. Actually, more specifically, it does not modify make.conf unnecessarily. (As before, it modified make.conf every time regardless of whether or not it changed anything) Also fixed the issue with removing and disabling multiple flags for a package."
2011-02-25Fix whitespacePaul Varner
2011-01-05Updated fix for partially matching use flags.Paul Varner
The previous fix would still match a use flag it it started with the same characters. This fixes it completely.
2011-01-04Added updates from Jared Hancock.Paul Varner
Fixed error output from disabling global flags with -D. Added --remove option and left --prune as an alias Also, as requested, pruning a flag no longer removes it from local package.use unless an explicit package is given. Unfortunately, package wildcards are not yet supported, so the package must be given exactly as it is found in package.use. Emit a warning for invalid package atoms: euse -E ldap -p =net-misc/openssh euse -E ldap -p net-misc/openssh-5.6* will both fail now since they would be ineffective and give further warnings from portage later. euse also would add an extra empty line to make.conf every time it was invoked with -E or -D
2011-01-04Fix bug where a use flag was partially matching a masked use flag.Paul Varner
For example: tk matching gtk3.
2011-01-04Add remove option.Paul Varner
Remove perl code and change to sed. Add Jared Hancock to the authors.
2010-12-28Merge branch 'gentoolkit' into eusePaul Varner
Conflicts: bin/euse
2010-12-28Added euse from bug 259318Paul Varner
2010-11-24Make euse prefix awarefuzzyray
svn path=/trunk/gentoolkit/; revision=869
2010-11-24Update euse to look for portage config files in new as well as old paths. ↵fuzzyray
Bug 346519 svn path=/trunk/gentoolkit/; revision=868
2010-11-23Revert previous changes to euse, changes will need to be more extensivefuzzyray
svn path=/trunk/gentoolkit/; revision=867
2010-11-23Update euse to look for /etc/portage/make.conf as well as /etc/make.conf. ↵fuzzyray
Bug 346519 svn path=/trunk/gentoolkit/; revision=866
2010-04-17euse: Make python code of euse python-3 compatible, thanks to Arfreveridl0r
Frehtes Taifersar Arahesis <arfrever@gentoo.org>. svn path=/trunk/gentoolkit/; revision=775
2010-04-11euse: Fix check for /etc/make.profile.idl0r
Check if its readable and a directory instead of checking if its a link, thanks to Phillip Brink (ohnobinki) <ohnobinki@ohnopublishing.net>. svn path=/trunk/gentoolkit/; revision=772
2010-04-06euse: Fix query to get USE, bug 181309, thanks to Jean-Baptiste Rouaultidl0r
<jbrouault@gmail.com>. svn path=/trunk/gentoolkit/; revision=767
2010-03-09sync with genscripts rev 343. This adds the initial py3k support and the ↵fuzzyray
analyse utility to gentoolkit svn path=/trunk/gentoolkit/; revision=751
2010-01-07Update Copyright date headersfuzzyray
svn path=/trunk/gentoolkit/; revision=731
2009-12-08Merge rev 113 from djanderson's genscripts repofuzzyray
svn path=/trunk/gentoolkit/; revision=703