summaryrefslogtreecommitdiffstats
path: root/bin/portageq
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Print the Id tag an it's own line to avoid goingZac Medico2007-10-231-2/+2
| | | | | | over 80 columns. svn path=/main/trunk/; revision=8243
* Fix the version Id tag.Zac Medico2007-10-231-2/+1
| | | | svn path=/main/trunk/; revision=8242
* Bug #196537 - Make portageq check that the <root> parameterZac Medico2007-10-211-7/+13
| | | | | | is an existing directory and exit gracefully if not. svn path=/main/trunk/; revision=8195
* Bug #196043 - Implement a `portageq owners <root> [<filename>]+`Zac Medico2007-10-171-1/+66
| | | | | | | | | command that is suitable for identifying all packages that own one or more files when a file collision has occurred. This uses dblink.isowner() so that the query works properly even when paths are ambiguous due to symlinked directories. svn path=/main/trunk/; revision=8154
* Bug #194764 - All the match* functions can raiseZac Medico2007-10-051-9/+13
| | | | | | | | | a ValueError if cpv_expand() receives an ambiguous atom. Therefore, move the ValueError handling code out of match() and use it to handle all such errors when appropriate. svn path=/main/trunk/; revision=7944
* Use better parseable format for list_preserved_libsMarius Mauch2007-06-291-1/+4
| | | | svn path=/main/trunk/; revision=7088
* Remove lots of unnecessary list generation via dict.keys().Zac Medico2007-06-211-2/+2
| | | | svn path=/main/trunk/; revision=6911
* For bug #180165, make portageq print a "Permission denied" error when ↵Zac Medico2007-06-201-0/+3
| | | | | | appropriate. A PermissionDenied exception is raised from portage.listdir() enven when EmptyOnError is True since errno.EACCES is very likely to indicate a condition that should be reported in any case. svn path=/main/trunk/; revision=6881
* Add portageq command to list preserved libsMarius Mauch2007-06-131-5/+23
| | | | svn path=/main/trunk/; revision=6835
* Use os.path.realpath to handle symlinks properly.Zac Medico2007-02-101-1/+1
| | | | svn path=/main/trunk/; revision=5945
* Fix automatic sys.path insertions so that they're relative instead of ↵Zac Medico2007-02-101-1/+2
| | | | | | absolute hard coded. svn path=/main/trunk/; revision=5942
* if requested argv cannot be matched to anything, exit with non-zero statusMike Frysinger2007-01-271-1/+6
| | | | svn path=/main/trunk/; revision=5791
* Syntax errorMarius Mauch2007-01-181-1/+1
| | | | svn path=/main/trunk/; revision=5702
* Various glep 42 fixes, fix up the portageq calls to fail properly, rewrite ↵Alec Warner2007-01-161-2/+9
| | | | | | the news checking code to check news for all repos with a name. svn path=/main/trunk/; revision=5670
* merge glep42 into trunkAlec Warner2007-01-161-0/+11
| | | | svn path=/main/trunk/; revision=5658
* exithandler is not a portageq func, so ignore itAlec Warner2007-01-151-1/+1
| | | | svn path=/main/trunk/; revision=5652
* More String deprecationAlec Warner2007-01-121-7/+6
| | | | svn path=/main/trunk/; revision=5597
* Rely on PYTHONPATH instead of PORTAGE_PYM_PATH for locating portage's python ↵Zac Medico2006-10-311-2/+5
| | | | | | modules, then fall back to an explicit sys.path insertion if an ImportError occurs. svn path=/main/trunk/; revision=4884
* streamline portage pythonpath handling and add an override analog to how the ↵Marius Mauch2006-10-261-1/+1
| | | | | | bash side does it svn path=/main/trunk/; revision=4822
* Remove unused PORTAGE_CALLER=portageq from the environment.Zac Medico2006-10-091-1/+0
| | | | svn path=/main/trunk/; revision=4633
* Make portageq exit successfully for -h or --help.Zac Medico2006-09-201-1/+4
| | | | svn path=/main/trunk/; revision=4484
* Make portageq exit with nonzero status when called incorrectly.Zac Medico2006-09-191-2/+2
| | | | svn path=/main/trunk/; revision=4483
* Make sure that portageq exits quietly when killed, like emerge does.Zac Medico2006-08-191-1/+17
| | | | svn path=/main/trunk/; revision=4306
* Add a new portageq metadata function that wraps dbapi.aux_get() so that ↵Zac Medico2006-07-151-0/+30
| | | | | | things like built_with_use in eutils.eclass can retrieve metadata in manner that is independent of the installed package database implementation. svn path=/main/trunk/; revision=3893
* make elog mail module always set the 'From' header for rfc2822 complianceMarius Mauch2006-06-101-1/+1
| | | | svn path=/main/trunk/; revision=3483
* In portageq, catch a KeyError and print a message to stderr. If the ↵Zac Medico2006-06-021-0/+3
| | | | | | KeyError is raised, portageq prints a help message which leads to bug #135278. svn path=/main/trunk/; revision=3449