summaryrefslogtreecommitdiffstats
path: root/bin/portageq
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Bug #288551 - Fix portageq to handle portage.exception.AmbiguousPackageNameZac Medico2009-10-111-5/+1
| | | | | | instead of ValueError. svn path=/main/trunk/; revision=14577
* Use dict.(keys|values|items)() instead of ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-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 Arahesis2009-09-211-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 Arahesis2009-09-211-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 Arahesis2009-09-201-0/+2
| | | | svn path=/main/trunk/; revision=14291
* Update syntax of calls to print() for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-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 Arahesis2009-09-201-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 useZac Medico2009-08-111-1/+2
| | | | | | _unicode_encode() and _unicode_decode() where appropriate. svn path=/main/trunk/; revision=13993
* Use writemsg_stdout() for safe unicode output.Zac Medico2009-08-081-14/+15
| | | | svn path=/main/trunk/; revision=13953
* Move global portage import to the top and add writemsg andZac Medico2009-08-081-20/+23
| | | | | | writemsg_stdout imports for safe unicode output. svn path=/main/trunk/; revision=13952
* Simplify command introspection inside usage().Zac Medico2009-08-081-6/+3
| | | | svn path=/main/trunk/; revision=13951
* Add a new portage.util.shlex_split() function to wrap all shlex.split() calls,Zac Medico2009-08-061-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 fileZac Medico2009-08-041-2/+7
| | | | | | names passed to the owners command). svn path=/main/trunk/; revision=13906
* Fix breakage in owners() handling of abs paths.Zac Medico2009-07-301-1/+1
| | | | svn path=/main/trunk/; revision=13862
* Add support to `portageq owners` for querying paths matching a given basename.Zac Medico2009-06-241-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 Medico2008-08-241-1/+1
| | | | svn path=/main/trunk/; revision=11460
* Fix spelling typos in error messages.Zac Medico2008-08-231-2/+2
| | | | svn path=/main/trunk/; revision=11459
* Fix the loop in filter_protected() to continue when necessary due to anZac Medico2008-08-231-0/+2
| | | | | | error. svn path=/main/trunk/; revision=11458
* Flush stdout after the loop inside filter_protected() completes.Zac Medico2008-08-231-0/+1
| | | | svn path=/main/trunk/; revision=11457
* Add a new filter_protected command which is similar to is_protected butZac Medico2008-08-231-0/+57
| | | | | | | | works by reading filenames from stdin and writing to stdout only the filenames that are protected. This allows an unlimited number of files to be checked via a single portageq call. svn path=/main/trunk/; revision=11456
* Add a new is_protected command which queries whether or not CONFIG_PROTECTZac Medico2008-08-221-0/+47
| | | | | | applies to a given file, using logic identical to the merge code. svn path=/main/trunk/; revision=11453
* Fix bug in get_repo_path() when called with multiple args.v2.2_rc3Zac Medico2008-07-231-1/+1
| | | | svn path=/main/trunk/; revision=11179
* Fix typo, found by pyflakes.Zac Medico2008-07-231-1/+1
| | | | svn path=/main/trunk/; revision=11178
* Add sandbox write access to PORTAGE_PYM_PATH before importing portage inZac Medico2008-07-231-3/+12
| | | | | | order to avoid sandbox violations after python upgrade. svn path=/main/trunk/; revision=11175
* Bug #230525 - Work around ObjectProxy breakage in `portageq vdb_path`.Zac Medico2008-07-041-2/+4
| | | | svn path=/main/trunk/; revision=10929
* Import portage before trying to access portage.exception for exceptionZac Medico2008-07-041-6/+7
| | | | | | handling. svn path=/main/trunk/; revision=10919
* Bug #229859 - Also add atom validation to match().Zac Medico2008-06-281-0/+4
| | | | svn path=/main/trunk/; revision=10837
* Bug #229859 - Make portageq check atom validity when has_version() andZac Medico2008-06-281-0/+10
| | | | | | best_version() are called from inside the ebuild environment. svn path=/main/trunk/; revision=10835
* * Remove PORTAGE_LEGACY_GLOBALS hack for portage import since lateZac Medico2008-06-261-10/+2
| | | | | | | | | | | initialization of portage.settings (via ObjectProxy) allows us to rely on being able to access the portage.exception namespace before portage.settings is initialized. * Use portage.settings["ROOT"] instead of portage.root to avoid potential ObjectProxy compatibility issues. svn path=/main/trunk/; revision=10804
* Add CONTENTS indexing support for optimization of owner lookups. TheZac Medico2008-06-091-20/+15
| | | | | | | | | | | | | | | | | | | | vardbapi cache maintains a hash table (inside vdb_metadata.pickle) that serves to index package contents by mapping the basename of file to a list of possible packages that own it. This is used to optimize owner lookups by narrowing the search down to a smaller number of packages. It increases the size of vdb_metadata.pickle by approximately 30% and it's used in the following cases: * When an unexpected file collision occurs (whether or not collision-protect is enabled) * `emerge <filename>` * `portageq owners` The svn path=/main/trunk/; revision=10609
* Bug #218559 - Make portdbapi automatically add sandbox write access toZac Medico2008-04-201-4/+0
| | | | | | | self.depcachedir when appropriate. This makes the portageq blanket sandbox exemption unnecessary. svn path=/main/trunk/; revision=9928
* Use os.environ["SANDBOX_ON"] = "0" to make portageq exempt from sandbox forZac Medico2008-03-061-0/+4
| | | | | | things like writing metadata cache. Thanks to ferringb for the suggestion. svn path=/main/trunk/; revision=9448
* fix message on ValueError to not sound like crapMarius Mauch2008-03-031-1/+1
| | | | svn path=/main/trunk/; revision=9427
* Implement a `portageq contents <root> <category/package>` commandZac Medico2007-12-211-0/+25
| | | | | | | that lists all the files that are installed for a given package, with one file listed on each line. svn path=/main/trunk/; revision=9035
* Typo: remove bogus argument.Zac Medico2007-12-211-1/+1
| | | | svn path=/main/trunk/; revision=9034
* Enhance the portageq match command to list all installed packagesZac Medico2007-12-211-9/+14
| | | | | | when given an empty string. svn path=/main/trunk/; revision=9033
* Bug #202566 - Move the 'global portage' statement to avoidZac Medico2007-12-211-1/+2
| | | | | | | | "SyntaxWarning: name 'portage' is assigned to before global declaration" messages produced by earlier python-2.4. svn path=/main/trunk/; revision=9004
* Instead of calling sys.exit when a ParseError occurs in the configZac Medico2007-12-111-0/+3
| | | | | | | | | constructor, raise a ParseError and make emerge and portageq handle the error. This way consumers of the portage api can handle the ParseError rather than have their application exit. Thanks to lxnay for reporting. svn path=/main/trunk/; revision=8884
* First import the main portage module without legacy globals since itZac Medico2007-12-111-1/+10
| | | | | | | | | is almost certain to succeed in that case. This provides access to the portage.exception namespace which is needed for later exception handling, like if portage.exception.PermissionDenied is raised when constructing the legacy global config instance. svn path=/main/trunk/; revision=8882