summaryrefslogtreecommitdiffstats
path: root/pym/portage_util.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Create a generic portage_util.LazyItemsDict and use it for lazy ↵Zac Medico2006-04-121-0/+27
| | | | | | initialization portage.db[root] items. svn path=/main/trunk/; revision=3133
* Raise exceptions when appropriate in the atomic_ofstream constructor for bug ↵Zac Medico2006-04-071-0/+2
| | | | | | #129098. svn path=/main/trunk/; revision=3087
* Change == None to is NoneAlec Warner2006-04-071-4/+4
| | | | svn path=/main/trunk/; revision=3085
* Move DISTDIR initialization from doebuild to fetch and handle read-only file ↵Zac Medico2006-04-031-4/+6
| | | | | | system errors for bug #128506. svn path=/main/trunk/; revision=3058
* Add a reusable ensure_dirs() function and use it for DISTDIR initialization.Zac Medico2006-03-301-0/+20
| | | | svn path=/main/trunk/; revision=3040
* The return value from apply_permissions now indicates whether or not the ↵Zac Medico2006-03-301-1/+7
| | | | | | permissions needed to be modified. svn path=/main/trunk/; revision=3039
* Automatically follow symlinks in the atomic_ofstream constructor. See bug ↵Zac Medico2006-03-291-1/+13
| | | | | | #127897. svn path=/main/trunk/; revision=3034
* Catch a possible OSError from the stat call in atomic_ofstream.close().Zac Medico2006-03-191-0/+5
| | | | svn path=/main/trunk/; revision=2950
* Add a generic apply_recursive_permissions function and use is for ↵Zac Medico2006-03-181-1/+42
| | | | | | $DISTDIR/cvs-src. svn path=/main/trunk/; revision=2925
* Fix typo in variable name from last revision.Zac Medico2006-03-171-1/+1
| | | | svn path=/main/trunk/; revision=2918
* Fix the apply_permissions XOR logic so that mask removes mode bits correctly.Zac Medico2006-03-171-2/+2
| | | | svn path=/main/trunk/; revision=2917
* Fix permissions functions so that error messages tell exactly which call failed.Zac Medico2006-03-171-28/+48
| | | | svn path=/main/trunk/; revision=2910
* One more 'mode & 07777' in apply_permissions.Zac Medico2006-03-141-0/+2
| | | | svn path=/main/trunk/; revision=2882
* Make that 'mode & 07777' for the previous commit.Zac Medico2006-03-141-2/+2
| | | | svn path=/main/trunk/; revision=2881
* Use 'mode & 0777' to protect ourselves from unwanted mode bits in ↵Zac Medico2006-03-141-5/+8
| | | | | | apply_permissions. svn path=/main/trunk/; revision=2880
* Make mode=-1 the default parameter for apply_permissions in order to ↵Zac Medico2006-03-141-3/+5
| | | | | | distinguish the behavior from mode=0. svn path=/main/trunk/; revision=2876
* Make the apply_permissions function default to exact matching of mode bits ↵Zac Medico2006-03-141-9/+19
| | | | | | and add a "mask" parameter that allows for XOR restriction of mode bits. svn path=/main/trunk/; revision=2874
* Wrap possible exceptions raised by stat call in apply_secpass_permissions.Zac Medico2006-03-141-1/+9
| | | | svn path=/main/trunk/; revision=2872
* Add a new OperationNotPermitted exception and use it to wrap ↵Zac Medico2006-03-141-17/+23
| | | | | | apply_permissions exceptions. svn path=/main/trunk/; revision=2871
* Make portage_util.apply_stat_permissions() wrap apply_secpass_permissions ↵Zac Medico2006-03-131-2/+2
| | | | | | instead of plain old apply_permissions. svn path=/main/trunk/; revision=2869
* Add a new portage_util.apply_secpass_permissions() function that ↵Zac Medico2006-03-131-1/+33
| | | | | | intelligently attempts to apply as much of the requested permissions as possible without generating an exception. svn path=/main/trunk/; revision=2868
* use getattr instead of hasattr for detection of base class destructor ↵Zac Medico2006-02-091-3/+3
| | | | | | (recommended by marienz) svn path=/main/trunk/; revision=2685
* add new atomic_ofstream class for safer writesZac Medico2006-02-091-6/+88
| | | | svn path=/main/trunk/; revision=2680
* cPickle import protection; fall back to pickle if cPickle is unavailable.Brian Harring2006-02-081-2/+7
| | | | svn path=/main/trunk/; revision=2679
* - added writemsg_stdout function and make portage use it internallyNed Ludd2006-01-011-3/+10
| | | | svn path=/main/trunk/; revision=2516
* revert down to 2.3 python requirement via avoiding sortedBrian Harring2005-12-271-1/+4
| | | | svn path=/main/trunk/; revision=2490
* linear unique_array lifted from saviour, lifted from a python cookbook.Brian Harring2005-12-271-9/+34
| | | | svn path=/main/trunk/; revision=2488
* ongoing portage_util cleanup.Brian Harring2005-12-271-77/+21
| | | | | | | | removed grabint, writeint; rewrote stack_list to use a dict rather then doing a crapload of linear searches. svn path=/main/trunk/; revision=2487
* bye bye crap grab_multiple function.Brian Harring2005-12-271-6/+0
| | | | | | list comp just as easily handles it. svn path=/main/trunk/; revision=2486
* Fix typo in writeints()v2.1_pre2Jason Stubbs2005-12-251-1/+1
| | | | svn path=/main/trunk/; revision=2450
* bug 114133, write a tmp file then rename it for write* funcs.Brian Harring2005-12-241-17/+24
| | | | | | This removes the possibility of out of space errors to occur, and blocks unexpected flat out bails (segfault fex) from hosing important files. svn path=/main/trunk/; revision=2447
* Generalize portage_util.dump_traceback() and make use of it if importingJason Stubbs2005-12-231-7/+15
| | | | | | a cache module fails. svn path=/main/trunk/; revision=2439
* add an option to grab* so that if they're given a directory they'll ↵Marius Mauch2005-11-301-25/+26
| | | | | | recursively find all files in it and treat them like one big file. Also make use of this option for most of the config files. svn path=/main/trunk/; revision=2324
* Add treetype instance member to dblink. Add treetype parameters tov2.0.53_rc7Jason Stubbs2005-10-301-2/+8
| | | | | | | | dblink.__init__() and merge(). Adjust all calls to dblink(), merge() and doebuild() to specify what tree should be used for aux_get(). Patch created with the help of Zac Medico (zmedico). svn path=/main/branches/2.0/; revision=2203
* bye bye mr. cvs_id_stringBrian Harring2005-08-301-1/+1
| | | | svn path=/main/branches/2.0/; revision=1953
* header changes, $Header: -> $Id:Brian Harring2005-08-301-1/+1
| | | | svn path=/main/branches/2.0/; revision=1951
* Migration (without history) of the current stable line to subversion.Jason Stubbs2005-08-281-0/+459
svn path=/main/branches/2.0/; revision=1941