Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use EROOT instead of ROOT for keys everywhere. | Zac Medico | 2011-10-25 | 1 | -11/+16 |
| | | | | | | | | | | It makes more sense to use EROOT instead of ROOT for keys in mappings like portage.db, since it allows for multiple prefixes to exist simultaneously within the same map without having a key collision. This affects all portageq commands which take a <root> parameter, since that parameter now corresponds to EROOT instead of ROOT. None of this makes any difference for non-prefix users, since EROOT and ROOT are identical when EPREFIX is empty. | ||||
* | portageq match: wildcard support | Zac Medico | 2011-10-13 | 1 | -8/+35 |
| | |||||
* | portageq best_visible: use match-all-cpv-only | Zac Medico | 2011-09-23 | 1 | -2/+4 |
| | |||||
* | portageq best_visible: multi-repo support | Zac Medico | 2011-09-22 | 1 | -12/+34 |
| | | | | This will fix bug #384063. | ||||
* | portageq: fix short help display for leading \n | Zac Medico | 2011-08-05 | 1 | -1/+1 |
| | |||||
* | portageq best_visible: support optional pkgtype | Zac Medico | 2011-08-04 | 1 | -11/+49 |
| | |||||
* | portageq: reference GLEP 37 in expand_virtual doc | Zac Medico | 2011-07-14 | 1 | -1/+2 |
| | |||||
* | portageq get_repo_path: output empty if unknownv2.2.0_alpha43 | Zac Medico | 2011-07-01 | 1 | -1/+4 |
| | | | | It used to output "None" for unknown repos, which was not intended. | ||||
* | portageq: fix all_best_visible to fail early | Zac Medico | 2011-06-18 | 1 | -3/+5 |
| | | | | This will fix bug #372193. | ||||
* | portageq: support --version | Zac Medico | 2011-06-05 | 1 | -4/+9 |
| | |||||
* | portageq: exclude expand_new_virt from commands | Zac Medico | 2011-06-02 | 1 | -4/+7 |
| | | | | | | This is necessary since portage probes functions in globals() and treats functions it finds as commands. Also, use lazy import to minimize global scope imports. | ||||
* | portageq: add new expand_virtual function | Zac Medico | 2011-06-02 | 1 | -0/+35 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Something like this was requested in bug #157357. Now that Gentoo has migrated all virtuals to GLEP 37 new-style virtuals, this kind of function may be helpful in order to resolve the currently installed provider of a particular virtual in scripts like bootstrap.sh. Usage: portageq expand_virtual <root> <atom> Returns a \n separated list of atoms expanded from a given virtual atom, excluding blocker atoms. Satisfied virtual atoms are not included in the output, since they are expanded to real atoms which are displayed. Unsatisfied virtual atoms are displayed without any expansion. The "match" command can be used to resolve the returned atoms to specific installed packages. Example input/output: $ portageq expand_virtual / virtual/jre =dev-java/sun-jdk-1.6.0* $ portageq expand_virtual / virtual/jre:1.5 dev-java/gcj-jdk $ portageq expand_virtual / virtual/package-manager sys-apps/portage $ portageq expand_virtual / virtual/libc sys-libs/glibc:2.2 $ portageq expand_virtual / virtual/os-headers sys-kernel/linux-headers:0 | ||||
* | portageq owners: list orphans via stderr | Zac Medico | 2011-03-20 | 1 | -5/+21 |
| | |||||
* | When killed by signal, return 128 + signum. | Zac Medico | 2011-01-15 | 1 | -4/+4 |
| | | | | | This is the same convention that bash uses for returncodes of processes that are killed by signals. | ||||
* | Fix portageq to handle NOCOLOR. | Zac Medico | 2010-10-11 | 1 | -0/+5 |
| | |||||
* | has/best_version: eqawarn if EAPI wrong for atom | Zac Medico | 2010-10-11 | 1 | -4/+42 |
| | | | | | Instead of calling die as in bug #340387, just call eqawarn for the time being. | ||||
* | Use EAPI to validate best/has_version atoms. | Zac Medico | 2010-10-08 | 1 | -2/+5 |
| | |||||
* | Invert portageq list_preserved_libs returncode meaning. | Zac Medico | 2010-09-29 | 1 | -4/+4 |
| | | | | Thanks to Jeremy Olexa <darkside@g.o> for the suggestion. | ||||
* | use EROOT with VDB_PATH | Fabian Groffen | 2010-09-04 | 1 | -1/+1 |
| | |||||
* | Hide the portageq list_preserved_libs command when _ENABLE_PRESERVE_LIBS | Zac Medico | 2010-09-02 | 1 | -0/+3 |
| | | | | is False. | ||||
* | Rename vardbapi.plib_registry to vardbapi._plib_registry since I'm | Zac Medico | 2010-08-29 | 1 | -1/+1 |
| | | | | | | trying to minimize the diff between the master branch and upcoming 2.1.9 branch which will not have preserve-libs support but will still have the code in private and disabled form. | ||||
* | When displaying portage.auxdbkeys, sort and filter unused. | Zac Medico | 2010-08-16 | 1 | -1/+2 |
| | |||||
* | Add ability for portageq help to print valid metadata keys. | Alec Warner | 2010-08-16 | 1 | -8/+11 |
| | |||||
* | Make sure portageq doesn't interpret anything that happens to be | Zac Medico | 2010-08-10 | 1 | -5/+6 |
| | | | | in globals() (such as imported modules) as a valid command. | ||||
* | Handle InvalidAtom from vardbapi.match() in has_version. | Zac Medico | 2010-07-05 | 1 | -0/+4 |
| | |||||
* | Add back executable bits, accidentally removed in previous commit. | Zac Medico | 2010-03-24 | 1 | -0/+0 |
| | |||||
* | Remove all svn $Id keywords. | Zac Medico | 2010-03-24 | 1 | -1/+0 |
| | |||||
* | Don't use $Id or $Rev for version strings since that doesn't work with git. | Zac Medico | 2010-03-24 | 1 | -1/+1 |
| | |||||
* | Fix AttributeError from has_versions for atoms with no USE deps. Thanks to | Zac Medico | 2010-01-28 | 1 | -2/+2 |
| | | | | | | Arfrever for reporting. svn path=/main/trunk/; revision=15214 | ||||
* | Add an Atom.evaluate_conditionals() method and use where appropriate. | Zac Medico | 2010-01-28 | 1 | -5/+1 |
| | | | | svn path=/main/trunk/; revision=15212 | ||||
* | Add support for evaluation of conditional USE atoms in has_version and | Zac Medico | 2010-01-27 | 1 | -11/+36 |
| | | | | | | best_version arguments, using the USE environment variable. svn path=/main/trunk/; revision=15211 | ||||
* | Bug #288551 - Fix portageq to handle portage.exception.AmbiguousPackageName | Zac Medico | 2009-10-11 | 1 | -5/+1 |
| | | | | | | instead of ValueError. svn path=/main/trunk/; revision=14577 | ||||
* | Use dict.(keys|values|items)() instead of ↵ | Arfrever Frehtes Taifersar Arahesis | 2009-09-21 | 1 | -2/+2 |
| | | | | | | | | dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3. (2to3-3.1 -f dict -nw ${FILES}) svn path=/main/trunk/; revision=14327 | ||||
* | Support both Python 2 and 3 in portage._unicode_encode() and ↵ | Arfrever Frehtes Taifersar Arahesis | 2009-09-21 | 1 | -1/+1 |
| | | | | | | | | portage._unicode_decode(). Update decoding in some files. svn path=/main/trunk/; revision=14321 | ||||
* | Use range() instead of xrange() for compatibility with Python 3. | Arfrever Frehtes Taifersar Arahesis | 2009-09-21 | 1 | -1/+1 |
| | | | | | | (2to3-3.1 -f xrange -nw ${FILES}) svn path=/main/trunk/; revision=14317 | ||||
* | Support print() function with Python 2 in some files. | Arfrever Frehtes Taifersar Arahesis | 2009-09-20 | 1 | -0/+2 |
| | | | | svn path=/main/trunk/; revision=14291 | ||||
* | Update syntax of calls to print() for compatibility with Python 3. | Arfrever Frehtes Taifersar Arahesis | 2009-09-20 | 1 | -43/+43 |
| | | | | | | (2to3-3.1 -f print -nw ${FILES}) svn path=/main/trunk/; revision=14290 | ||||
* | Update syntax of 'except' statements for compatibility with Python 3. | Arfrever Frehtes Taifersar Arahesis | 2009-09-20 | 1 | -3/+3 |
| | | | | | | (2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289 | ||||
* | Update imports to import portage.os (with unicode wrappers), and use | Zac Medico | 2009-08-11 | 1 | -1/+2 |
| | | | | | | _unicode_encode() and _unicode_decode() where appropriate. svn path=/main/trunk/; revision=13993 | ||||
* | Use writemsg_stdout() for safe unicode output. | Zac Medico | 2009-08-08 | 1 | -14/+15 |
| | | | | svn path=/main/trunk/; revision=13953 | ||||
* | Move global portage import to the top and add writemsg and | Zac Medico | 2009-08-08 | 1 | -20/+23 |
| | | | | | | writemsg_stdout imports for safe unicode output. svn path=/main/trunk/; revision=13952 | ||||
* | Simplify command introspection inside usage(). | Zac Medico | 2009-08-08 | 1 | -6/+3 |
| | | | | svn path=/main/trunk/; revision=13951 | ||||
* | Add a new portage.util.shlex_split() function to wrap all shlex.split() calls, | Zac Medico | 2009-08-06 | 1 | -6/+6 |
| | | | | | | since shlex.split() doesn't behave well with unicode strings. svn path=/main/trunk/; revision=13939 | ||||
* | Decode arguments to unicode if necessary (needed at least for unicode file | Zac Medico | 2009-08-04 | 1 | -2/+7 |
| | | | | | | names passed to the owners command). svn path=/main/trunk/; revision=13906 | ||||
* | Fix breakage in owners() handling of abs paths. | Zac Medico | 2009-07-30 | 1 | -1/+1 |
| | | | | svn path=/main/trunk/; revision=13862 | ||||
* | Add support to `portageq owners` for querying paths matching a given basename. | Zac Medico | 2009-06-24 | 1 | -5/+9 |
| | | | | | | | | It is natural to support this since the vartree already maintains a basename -> owner index anyway. There are plans for the packagekit backend is to support this type of search. svn path=/main/trunk/; revision=13681 | ||||
* | Fix grammar. Thanks to ABCD. | Zac Medico | 2008-08-24 | 1 | -1/+1 |
| | | | | svn path=/main/trunk/; revision=11460 | ||||
* | Fix spelling typos in error messages. | Zac Medico | 2008-08-23 | 1 | -2/+2 |
| | | | | svn path=/main/trunk/; revision=11459 | ||||
* | Fix the loop in filter_protected() to continue when necessary due to an | Zac Medico | 2008-08-23 | 1 | -0/+2 |
| | | | | | | error. svn path=/main/trunk/; revision=11458 | ||||
* | Flush stdout after the loop inside filter_protected() completes. | Zac Medico | 2008-08-23 | 1 | -0/+1 |
| | | | | svn path=/main/trunk/; revision=11457 |