summaryrefslogtreecommitdiffstats
path: root/pym/portage_util.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix the variable subsitution code from bug #221755 so that variableZac Medico2008-05-121-3/+5
| | | | | | | assignments from earlier files don't leak into variable assignments from later files (except through substitution). (trunk r10294:10297) svn path=/main/branches/2.1.2/; revision=10298
* Bug #221755 - Enable variable substitution in make.defaults to work accrossZac Medico2008-05-111-1/+7
| | | | | | | | multiple files instead of being confined to a single file. This allows profiles to create incremental-like behavior with non-incremental variables when desired. (trunk r10293) svn path=/main/branches/2.1.2/; revision=10294
* Handle a potential FileNotFound exception in new_protect_filename() whenZac Medico2008-04-021-3/+8
| | | | | | | the last ._cfg* file happens to be a broken symlink. Thanks to bonsaikitten for reporting. (trunk r9676:9678) svn path=/main/branches/2.1.2/; revision=9679
* Make stack_dicts() treat an empty variable assignment just like a non-emptyZac Medico2008-03-281-1/+1
| | | | | | | assignment. This allows the profile to set and empty variable in make.defaults and have it override a non-empty value as one would expect. (trunk r9361) svn path=/main/branches/2.1.2/; revision=9532
* Make 'import portage' statements more tolerant to broken source statementsZac Medico2008-03-011-1/+19
| | | | | | | | in make.conf since exceptions thrown during 'import portage' statements can practically render the api unusable for api consumers. Thanks to lxnay for the suggestion. (trunk r9400) svn path=/main/branches/2.1.2/; revision=9401
* Bug #204020 - Make grabfile() properly raise PermissionDenied whenZac Medico2008-01-021-1/+3
| | | | | | | appropriate instead of silently ignoring permission errors. (trunk r9135) svn path=/main/branches/2.1.2/; revision=9136
* In getconfig(), pass the infile attribute into the shlexZac Medico2007-12-281-1/+4
| | | | | | | constructor so that shlex.sourcehook() properly joins relative paths. (trunk r9054) svn path=/main/branches/2.1.2/; revision=9071
* * Raise PermissionDenied from getconfig() when appropriate.Zac Medico2007-12-111-3/+5
| | | | | | | | * When available, make getconfig() include an invalid token in a ParseError message. (trunk r8883) svn path=/main/branches/2.1.2/; revision=8885
* For bug #187518, handle EISDIR thrown from mkdir when the directory already ↵Zac Medico2007-08-021-1/+1
| | | | | | exists on FreeBSD. (trunk r7544) svn path=/main/branches/2.1.2/; revision=7545
* Remove more unnecessary list generation. (trunk r6912)Zac Medico2007-06-221-3/+3
| | | | svn path=/main/branches/2.1.2/; revision=6931
* For bug #177591, increase shell compatibility by preserving quotes in ↵Zac Medico2007-05-091-2/+4
| | | | | | varexpand() since quote removal is handled by shlex. (trunk r6504:6505) svn path=/main/branches/2.1.2/; revision=6510
* dump emerge's normpath in favor of portage_util's normalize_path (trunk r5698)v2.1.2-r1Zac Medico2007-01-191-0/+5
| | | | svn path=/main/branches/2.1.2/; revision=5720
* Fix another typo.Zac Medico2007-01-121-1/+1
| | | | svn path=/main/trunk/; revision=5609
* purge string from portage.py, fix minor bug in portage_utilAlec Warner2007-01-121-1/+1
| | | | svn path=/main/trunk/; revision=5604
* more string deprecationAlec Warner2007-01-121-5/+5
| | | | svn path=/main/trunk/; revision=5595
* docs for grabdictAlec Warner2007-01-111-1/+21
| | | | svn path=/main/trunk/; revision=5556
* continue is only for loopsMarius Mauch2007-01-111-1/+1
| | | | svn path=/main/trunk/; revision=5550
* Extend ignore filter for grablines (bug #144445)Marius Mauch2007-01-111-1/+3
| | | | svn path=/main/trunk/; revision=5548
* minor syntax changes ( in is faster than has_key ) and docstringsAlec Warner2006-12-081-4/+33
| | | | svn path=/main/trunk/; revision=5215
* Use portage_data.lchown for compatibility.Zac Medico2006-11-221-1/+2
| | | | svn path=/main/trunk/; revision=5119
* Really fix bit mask support when preserving S_ISUID and S_ISGID in ↵Zac Medico2006-11-221-1/+3
| | | | | | apply_permissions. svn path=/main/trunk/; revision=5117
* Fix bit mask support when preserving S_ISUID and S_ISGID in apply_permissions.Zac Medico2006-11-221-1/+6
| | | | svn path=/main/trunk/; revision=5116
* Fix apply_permissions logic for cases where mode is unspecified.Zac Medico2006-11-221-1/+4
| | | | svn path=/main/trunk/; revision=5115
* For bug #142993, make sure that chown and chgrp calls preserve S_ISUID and ↵Zac Medico2006-11-221-6/+26
| | | | | | S_ISGID mode bits. svn path=/main/trunk/; revision=5114
* Just use stat instead of lstat for config protect, so that broken symlinks ↵Zac Medico2006-10-301-6/+1
| | | | | | are just ignored. svn path=/main/trunk/; revision=4881
* Fix CONFIG_PROTECT so that is works with symlinked directories for bug #151502.Zac Medico2006-10-171-0/+10
| | | | svn path=/main/trunk/; revision=4742
* Add -* support to stack_lists() and use dict.pop() for removal of flags when ↵Zac Medico2006-10-171-3/+7
| | | | | | appropriate. svn path=/main/trunk/; revision=4736
* Simplify and optimize grabdict. Thanks to Brian Harring for suggesting this.Zac Medico2006-10-151-10/+6
| | | | svn path=/main/trunk/; revision=4719
* Make grabdict incremental, so that keys occuring multiple times will stack ↵Zac Medico2006-10-151-3/+10
| | | | | | up instead of overwritting eachother. Thanks to Sven Wegener for this suggestion. svn path=/main/trunk/; revision=4718
* Don't call varexpand inside getconfig for env.d/profile.env values.Zac Medico2006-10-061-2/+5
| | | | svn path=/main/trunk/; revision=4603
* For bug #14215, put the shlex parser in posix mode so that it properly ↵Zac Medico2006-10-061-3/+3
| | | | | | recognizes escaped quotes. svn path=/main/trunk/; revision=4602
* For bug #150163, remove unnecessary validation of new_protect_filename() ↵Zac Medico2006-10-061-4/+0
| | | | | | parameters. svn path=/main/trunk/; revision=4601
* Optimize varexpand for bug #149900.Zac Medico2006-10-021-4/+4
| | | | svn path=/main/trunk/; revision=4574
* For bug #14321, add support for individual files in CONFIG_PROTECT and ↵Zac Medico2006-09-161-9/+41
| | | | | | CONFIG_PROTECT_MASK. svn path=/main/trunk/; revision=4458
* Since none of the code is written to handle it, never return a tuple from ↵Zac Medico2006-09-041-6/+1
| | | | | | new_protect_filename(). See bug #146289. svn path=/main/trunk/; revision=4400
* Make stack_dictlist return an empty dictionary when there is nothing to ↵Zac Medico2006-08-131-3/+1
| | | | | | stack. See bug #143730. svn path=/main/trunk/; revision=4240
* Fix stack_dictlist() so that incremental stacking behaves more like it does ↵Zac Medico2006-08-111-12/+13
| | | | | | in config.regenerate(). svn path=/main/trunk/; revision=4213
* Only ignore ENOENT in getconfig() so that more important errors don't go ↵Zac Medico2006-07-311-1/+3
| | | | | | unnoticed. svn path=/main/trunk/; revision=4052
* Catch ParseError from getconfig during env_update for bug #142157.Zac Medico2006-07-311-1/+1
| | | | svn path=/main/trunk/; revision=4050
* Stack /etc/profile.env inside portage.config so that it doesn't stop ↵Zac Medico2006-07-291-0/+2
| | | | | | variables in inappropriate places. See bug #51370. svn path=/main/trunk/; revision=4048
* Fix unsafe deletion of a dictionary item during iteration.Zac Medico2006-07-261-1/+4
| | | | svn path=/main/trunk/; revision=4026
* Do the portage_checksum import in local scope because of circular dependency.Zac Medico2006-07-211-1/+1
| | | | svn path=/main/trunk/; revision=3979
* Move new_protect_filename from the core portage module to portage_util.Zac Medico2006-07-211-0/+51
| | | | svn path=/main/trunk/; revision=3978
* Remove grabdict_package and grabfile_package from the core portage module ↵Zac Medico2006-07-211-0/+1
| | | | | | since the copies in portage_util can now work by importing isvalidatom from portage_dep. svn path=/main/trunk/; revision=3975
* Move the ConfigProtect class to the portage_util module.Zac Medico2006-07-161-0/+39
| | | | svn path=/main/trunk/; revision=3895
* Move normalize_path into portage_util.Zac Medico2006-07-151-0/+7
| | | | svn path=/main/trunk/; revision=3891
* Wrap common write_atomic exceptions for easier error handling.Zac Medico2006-07-091-4/+16
| | | | svn path=/main/trunk/; revision=3822
* Sort filenames for predictable results.Zac Medico2006-06-231-1/+3
| | | | svn path=/main/trunk/; revision=3621
* Test the basename for starting with "." instead of the full path.Zac Medico2006-06-231-5/+4
| | | | svn path=/main/trunk/; revision=3613
* Fix a typo from r3611 (file != files).Zac Medico2006-06-231-1/+1
| | | | svn path=/main/trunk/; revision=3612