summaryrefslogtreecommitdiffstats
path: root/pym/portage/util/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix varexpand() so that it doesn't do redundant quote removal thatZac Medico2010-09-251-1/+7
| | | | | | | | is already handled by shlex. This fixes a bug in getconfig() which caused it to remove backslash characters it front of quote characters in cases where bash would have preserved them when sourcing the same input.
* Fix the "Unmatch removal atoms" (second try) to show the correctZac Medico2010-09-181-2/+3
| | | | number of undisplayed atoms when there are more than 3.
* Fix off-by-one; don't print useless "and 0 more" message.Fabian Groffen2010-09-181-1/+1
|
* Tweak stack_lists() strict_warn_for_unmatched_removal logic.Zac Medico2010-09-151-2/+3
|
* Bug #337180 - Add a strict_warn_for_unmatched_removal parameter forZac Medico2010-09-141-2/+8
| | | | stack_lists() that will be useful for repoman, and disable it by default.
* Limit the spam caused by unmatched removal atomsSebastian Luther2010-09-141-9/+12
|
* Bug #336692 - When stack_lists() detects unmatched removal atoms,Zac Medico2010-09-141-1/+8
| | | | | account for cases in which the same profile is inherited multiple times in the same stack.
* Add :.repo syntax support for portage.util.{grabfile_package,grabdict_package}Sebastian Luther2010-09-141-4/+4
|
* Make sure atoms in profiles follow the profiles EAPISebastian Luther2010-09-131-8/+39
|
* portage.util: Add optional remember_source_file parameter to some functions ↵Sebastian Luther2010-09-101-22/+51
| | | | | | | | to make them return (token, file) pairs This is useful to name the token's source file in error messages. stack_lists has another new optional parameter: warn_for_unmatched_removal, which warns for -atoms that don't remove anything.
* Import ifilterfalse as filterfalse, for python3 compatibility.Zac Medico2010-09-091-2/+5
|
* Add portage.util.unique_everseenSebastian Luther2010-09-091-2/+23
| | | | | List unique elements, preserving order. Remember all elements ever seen. Taken from itertools documentation.
* Use localization for the dos line-endings warning message in getconfig.Zac Medico2010-09-071-2/+2
|
* Bug #336349 - Make getconfig() warn about dos-style line endings inZac Medico2010-09-071-5/+13
| | | | | config files, since that prevents people from being able to source them with bash.
* Use a lazy import for portage.dep instide portage.util.Zac Medico2010-09-031-1/+1
|
* Add a note to the ensure_dirs() docstring about atomic directory creation.Zac Medico2010-09-011-1/+6
|
* Make ensure_dirs() use os.path.isdir() to verify that the directoryZac Medico2010-09-011-2/+3
| | | | exists when EISDIR is raised, since this is abnormal behavior.
* In ensure_dirs(), only call apply_permissions() when keyword argumentsZac Medico2010-09-011-2/+5
| | | | for it are given.
* In dblink.mergeme(), handle EISDIR which can be raised from mkdir callsZac Medico2010-08-311-0/+1
| | | | on FreeBSD (see bug #187518).
* Bug #334817 - Make genconfig() warn about EISDIR instead of raisingZac Medico2010-08-271-1/+2
| | | | a IOError.
* Make recursive grablines() ignore the same directories asZac Medico2010-08-231-2/+5
| | | | portage.listdir(), and do the same for update_config_files().
* Make varexpand() create a new empty dict for variable expansions inZac Medico2010-08-201-1/+3
| | | | | case one is not passed in. This will prevent some potentially confusing behavior.
* portage.util.grab*(): Add optional parameter to allow wildscards in atomsSebastian Luther2010-07-231-4/+4
|
* portage.dep.Atom: Add optional parameter to allow wildcards (*/*, cat/*, */pkg)Sebastian Luther2010-07-231-1/+1
|
* Fix output handling for FEATURES="lafilefixing".Zac Medico2010-07-121-4/+8
|
* Fix writemsg to only use fd.buffer when it is stderr or stdout.Zac Medico2010-07-121-1/+1
|
* repoman: Fix bogus warnings "Invalid atom in [..]/package.keywords: D" when ↵Sebastian Pipping2010-07-061-1/+1
| | | | working on CVS trees (bug #275789)
* Make ensure_dirs() behave correctly for DragonFly when EPERM is raised forZac Medico2010-04-061-7/+12
| | | | makedir('/'). Thanks to Naohiro Aota <naota@elisp.net> for the initial patch.
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Clean up imports and unused variables.Zac Medico2010-03-021-19/+5
| | | | svn path=/main/trunk/; revision=15716
* Move the portage.util module into a directory, for splitting into smaller files.Zac Medico2010-02-221-0/+1429
svn path=/main/trunk/; revision=15422