summaryrefslogtreecommitdiffstats
path: root/bin/portageq
Commit message (Collapse)AuthorAgeFilesLines
* Use unicode_literals more.Zac Medico2013-01-181-7/+3
| | | | | This helps to ensure consistent results, regardless of whether we're using Python 2 or Python 3.
* Add portage._internal_caller var, and use it.Zac Medico2013-01-031-1/+2
|
* EAPI="5-progress": Add master_repositories(), repository_path(),Arfrever Frehtes Taifersar Arahesis2012-10-141-3/+109
| | | | available_eclasses(), eclass_path() and license_path() functions.
* best_version() and has_version(): Improve die() messages.Arfrever Frehtes Taifersar Arahesis2012-10-071-2/+2
| | | | | | - Print different die() message for invalid atoms. - Mention ebuild-ipc instead of portageq in other die() messages when ebuild-ipc is actually used.
* portageq: Automatically do not include imported functions in the list of ↵Arfrever Frehtes Taifersar Arahesis2012-09-251-4/+2
| | | | commands.
* Add preserve-libs for stable branch (not default)Zac Medico2012-09-211-3/+0
| | | | | | | | | EAPI 5 supports automatic rebuilds via the slot-operator and sub-slots, which makes preserve-libs much more user-friendly, since it makes @preserved-rebuild unnecessary (also see bug #364425 for explanation of @preserved-rebuild shortcomings). Therefore, enable preserve-libs for the stable branch, but not by default. After EAPI 5 is widely adopted, we can consider enabling preserve-libs by default.
* Unconditionally insert our pym dir in sys.path.Zac Medico2012-09-021-7/+2
| | | | | This is especially necessary when running in prefix mode, since sys.path may contain the path for a different version of portage.
* portageq: clarify meaning of uses_rootGregory M. Turner2012-08-311-20/+29
| | | | | | | | | | | | | | | | | | | | | o s/uses_root/uses_eroot/g -- This name was chosen before its meaning was changed; update it to reflect its purporse. o Fix a left-over "<root>" arg-doc that never got updated to "<eroot>" o If a provided eroot argument was shorter than the ${EPREFIX}, portageq was truncating it down to nothing and activating relative root, which means this became equivalent to an explicit argument of "${PWD}/${EPREFIX}/". This is obviously wrong; and a simple case of failing to sanity-check inputs from an interface that changed in a backward-incompatible way. There's no provision in portageq to query EROOT's that don't end in ${EPREFIX}; so if the user makes such a request, instead of doing something pathological, dump a helpful error message and bail with a nonzero exit code. Signed-off-by: Gregory M. Turner <gmturner007@ameritech.net>
* Fix extended atom match for =* operator.Zac Medico2012-07-181-7/+5
|
* portageq: use return instead of sys.exitZac Medico2012-04-221-18/+18
|
* portageq mass_best_visible: optional "type" argZdenek Behan2012-04-131-4/+18
|
* portageq: add "colormap" helperMike Frysinger2012-03-111-0/+8
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Support repository dependencies in EAPI="4-python".Arfrever Frehtes Taifersar Arahesis2012-01-161-4/+7
|
* portageq metadata: Support repository dependencies.Arfrever Frehtes Taifersar Arahesis2012-01-151-2/+4
|
* Use portage.const.EPREFIX more.Zac Medico2011-12-091-1/+1
|
* portageq: get_repo* uses_rootZac Medico2011-12-091-0/+4
|
* portageq: refer to <eroot> instead of <root>Zac Medico2011-10-281-25/+25
| | | | | | Since commit a715b65f7bd36409c1283e6911265d1f4405ab7a, portageq takes EROOT as the first argument of commands that require a root argument. So, update the docs to refer to <eroot> instead of <root>.
* Use EROOT to validate path arguments.Zac Medico2011-10-281-1/+1
|
* Check for bytes instead of unicode in args.Zac Medico2011-10-281-1/+1
| | | | | | This simplifies the checks since the bytes type is available in all supported python versions, while the unicode type is only available in python2.
* Use EROOT instead of ROOT for keys everywhere.Zac Medico2011-10-251-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 supportZac Medico2011-10-131-8/+35
|
* portageq best_visible: use match-all-cpv-onlyZac Medico2011-09-231-2/+4
|
* portageq best_visible: multi-repo supportZac Medico2011-09-221-12/+34
| | | | This will fix bug #384063.
* portageq: fix short help display for leading \nZac Medico2011-08-051-1/+1
|
* portageq best_visible: support optional pkgtypeZac Medico2011-08-041-11/+49
|
* portageq: reference GLEP 37 in expand_virtual docZac Medico2011-07-141-1/+2
|
* portageq get_repo_path: output empty if unknownv2.2.0_alpha43Zac Medico2011-07-011-1/+4
| | | | It used to output "None" for unknown repos, which was not intended.
* portageq: fix all_best_visible to fail earlyZac Medico2011-06-181-3/+5
| | | | This will fix bug #372193.
* portageq: support --versionZac Medico2011-06-051-4/+9
|
* portageq: exclude expand_new_virt from commandsZac Medico2011-06-021-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 functionZac Medico2011-06-021-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 stderrZac Medico2011-03-201-5/+21
|
* When killed by signal, return 128 + signum.Zac Medico2011-01-151-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 Medico2010-10-111-0/+5
|
* has/best_version: eqawarn if EAPI wrong for atomZac Medico2010-10-111-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 Medico2010-10-081-2/+5
|
* Invert portageq list_preserved_libs returncode meaning.Zac Medico2010-09-291-4/+4
| | | | Thanks to Jeremy Olexa <darkside@g.o> for the suggestion.
* use EROOT with VDB_PATHFabian Groffen2010-09-041-1/+1
|
* Hide the portageq list_preserved_libs command when _ENABLE_PRESERVE_LIBSZac Medico2010-09-021-0/+3
| | | | is False.
* Rename vardbapi.plib_registry to vardbapi._plib_registry since I'mZac Medico2010-08-291-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 Medico2010-08-161-1/+2
|
* Add ability for portageq help to print valid metadata keys.Alec Warner2010-08-161-8/+11
|
* Make sure portageq doesn't interpret anything that happens to beZac Medico2010-08-101-5/+6
| | | | in globals() (such as imported modules) as a valid command.
* Handle InvalidAtom from vardbapi.match() in has_version.Zac Medico2010-07-051-0/+4
|
* Add back executable bits, accidentally removed in previous commit.Zac Medico2010-03-241-0/+0
|
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Don't use $Id or $Rev for version strings since that doesn't work with git.Zac Medico2010-03-241-1/+1
|
* Fix AttributeError from has_versions for atoms with no USE deps. Thanks toZac Medico2010-01-281-2/+2
| | | | | | Arfrever for reporting. svn path=/main/trunk/; revision=15214
* Add an Atom.evaluate_conditionals() method and use where appropriate.Zac Medico2010-01-281-5/+1
| | | | svn path=/main/trunk/; revision=15212
* Add support for evaluation of conditional USE atoms in has_version andZac Medico2010-01-271-11/+36
| | | | | | best_version arguments, using the USE environment variable. svn path=/main/trunk/; revision=15211