summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Appropriately use globals() instead of locals() as suggested by marienz.Zac Medico2007-03-182-2/+2
| | | | svn path=/main/trunk/; revision=6246
* Never use listdir with both recursion=True and followSymlinks=True since it ↵Zac Medico2007-03-181-2/+2
| | | | | | circular symlinks will lead to endless recursion loops. Thanks to Tobias Hahn <tobhahn@web.de> for this patch. svn path=/main/trunk/; revision=6242
* Use locals() instead of setattr to insert generated functions into the ↵Zac Medico2007-03-182-2/+2
| | | | | | current module. Thanks to Brian Harring for the suggestion. svn path=/main/trunk/; revision=6241
* Call the base class destructor if it exists.Zac Medico2007-03-171-0/+2
| | | | svn path=/main/trunk/; revision=6234
* Add "bin" to testDirs.Zac Medico2007-03-171-1/+1
| | | | svn path=/main/trunk/; revision=6233
* Make paths independent of cwd.Zac Medico2007-03-171-2/+3
| | | | svn path=/main/trunk/; revision=6232
* Close /dev/null when finished.Zac Medico2007-03-171-0/+1
| | | | svn path=/main/trunk/; revision=6231
* start of framework for programs in portage binMike Frysinger2007-03-174-0/+91
| | | | svn path=/main/trunk/; revision=6230
* bump ________foo from the TestCase class since _exc_info() doesn't do ↵Alec Warner2007-03-171-6/+3
| | | | | | anything anyway svn path=/main/trunk/; revision=6228
* fix for older python who have oddly named __exc_info()Alec Warner2007-03-171-0/+3
| | | | svn path=/main/trunk/; revision=6227
* Use mkstemp to create a random tempfile.Zac Medico2007-03-171-3/+5
| | | | svn path=/main/trunk/; revision=6226
* Fix a broken test.Zac Medico2007-03-171-1/+1
| | | | svn path=/main/trunk/; revision=6224
* Fix broken exception handling.Zac Medico2007-03-171-3/+3
| | | | svn path=/main/trunk/; revision=6223
* Fix a typo.Zac Medico2007-03-171-1/+1
| | | | svn path=/main/trunk/; revision=6222
* Fix a utime call to prevent a timestamp collision for bug #171117.Zac Medico2007-03-161-2/+2
| | | | svn path=/main/trunk/; revision=6217
* For bug #171117, ensure that the new and old config have different ↵Zac Medico2007-03-161-1/+7
| | | | | | timestamps (for the benefit of programs like rsync that need distiguishable timestamps to detect file changes). Thanks to Ben Bennett <sink@limey.net> for reporting. svn path=/main/trunk/; revision=6215
* Add back rstrip(os.path.sep) from the previous commit since it's needed when ↵Zac Medico2007-03-151-4/+4
| | | | | | ROOT="/". svn path=/main/trunk/; revision=6211
* Automatically convert ROOT and PORTAGE_CONFIGROOT to absolute paths when ↵Zac Medico2007-03-151-2/+2
| | | | | | necessary since relative paths lead to problems. Thanks to Christian Heim <phreak@gentoo.org> for reporting. svn path=/main/trunk/; revision=6210
* For bug #170178, remove all hardcoded references to '/usr/lib/portage'.Zac Medico2007-03-102-4/+6
| | | | svn path=/main/trunk/; revision=6203
* Display message about --buildpkgonly restriction in pretend mode as wellMarius Mauch2007-03-091-0/+5
| | | | svn path=/main/trunk/; revision=6199
* Remove the "masked by: profile" support from getmaskingstatus().Zac Medico2007-03-091-12/+0
| | | | svn path=/main/trunk/; revision=6197
* Use the full atoms from the system set, since profile masking does not ↵Zac Medico2007-03-091-4/+2
| | | | | | automatically constrain the matches anymore. svn path=/main/trunk/; revision=6196
* Remove legacy "masked by: profile" support as per bug #149508. Profiles ↵Zac Medico2007-03-091-17/+0
| | | | | | should use package.mask to mask unwanted versions of system packages. svn path=/main/trunk/; revision=6195
* whoopse, s/;/:/Alec Warner2007-03-081-1/+1
| | | | svn path=/main/trunk/; revision=6194
* add PackageMask{File} classes, change unit tests to use try/finally, makes ↵Alec Warner2007-03-084-12/+101
| | | | | | sure the tempfile gets destroyed even if something weird happens svn path=/main/trunk/; revision=6193
* Change load() to have no default arguments, makes caller specifiy ↵Alec Warner2007-03-083-3/+90
| | | | | | explicitly...I think assuming a default arg is bad here. Also add PackageUse and PackageUseFile, change up the comments a bit. I've started to notice code re-use here; these are basically the same code. I think I will write up the rest of the package* classes and then perform code merges to save LOC and memory and whatnot svn path=/main/trunk/; revision=6192
* Part of my attempt now involves cleaning up config; this means for me; ↵Alec Warner2007-03-077-11/+117
| | | | | | removing the file-based stuff from it (config_path) and encapsulating that into classes. This is the first one, a simple PackageKeywords class that does file-based stuff, no recursion yet but soon. Trying to do TDD here as well,so tests first then code. svn path=/main/trunk/; revision=6190
* Take marien's advice, turn Skips into Todos for clarity sakeAlec Warner2007-03-072-18/+14
| | | | svn path=/main/trunk/; revision=6189
* Fix 2 more types.InstanceType comparisons that are broken by the transition ↵Zac Medico2007-03-061-2/+2
| | | | | | of dbapi to new-style classes. svn path=/main/trunk/; revision=6188
* For bug #169620, in --tree display always show the dowload size on the node ↵Zac Medico2007-03-061-3/+2
| | | | | | that is "ordered" rather than one of it's "nomerge" counterparts. svn path=/main/trunk/; revision=6186
* Update all the unittests to use the new framework, test skipping with ↵Alec Warner2007-03-0618-17/+36
| | | | | | isValidAtom, add silly xpak test since I have it 'done' svn path=/main/trunk/; revision=6182
* Roll our own unittest framework to add skip support.Alec Warner2007-03-061-7/+126
| | | | svn path=/main/trunk/; revision=6181
* these will fail nowAlec Warner2007-03-051-3/+4
| | | | svn path=/main/trunk/; revision=6178
* Avoid pointless population of the binary tree when --buildpkg is enabled. ↵Zac Medico2007-03-051-3/+3
| | | | | | Thanks to vapier for reporting. svn path=/main/trunk/; revision=6175
* Display blockers at the end of the list so that it will more often be easy ↵Zac Medico2007-03-041-4/+8
| | | | | | for the user to see them in a terminal. Thanks to iapitus and hydrogen for the suggestion. svn path=/main/trunk/; revision=6169
* Remove the KVERS environment variable since it's code that creates it is ↵Zac Medico2007-03-041-4/+0
| | | | | | broken anyway (only sets KVERS="." in the general case). svn path=/main/trunk/; revision=6166
* Fix the minimum index for pruning consecutive duplicate nodes.Zac Medico2007-03-041-1/+1
| | | | svn path=/main/trunk/; revision=6164
* Add a note about --with-bdeps in the --depclean failure message.Zac Medico2007-03-041-3/+4
| | | | svn path=/main/trunk/; revision=6162
* For bug #169187, make --depclean prune unneeded slots such that it is ↵Zac Medico2007-03-041-2/+8
| | | | | | consistent with the world update algorithm. svn path=/main/trunk/; revision=6160
* Only prune duplicate consecutive nodes if they both have depth == 0.Zac Medico2007-03-031-1/+2
| | | | svn path=/main/trunk/; revision=6158
* Pass waiting_msg into recursive lockfile() calls.Zac Medico2007-03-031-2/+5
| | | | svn path=/main/trunk/; revision=6156
* make sure uid is an intAlec Warner2007-03-031-2/+2
| | | | svn path=/main/trunk/; revision=6155
* Make sure that excess "nomerge" nodes are pruned correctly.Zac Medico2007-03-031-1/+1
| | | | svn path=/main/trunk/; revision=6148
* Add missing sys import.Zac Medico2007-03-031-1/+1
| | | | svn path=/main/trunk/; revision=6146
* For bug #138840, show a more informative message when waiting for a ↵Zac Medico2007-03-032-7/+19
| | | | | | distfiles lock due to parallel-fetch. Thanks to David Watzke <david@watzke.cz> for the initial patch. svn path=/main/trunk/; revision=6143
* s/node/selected_parent/ for clarityZac Medico2007-03-031-2/+2
| | | | svn path=/main/trunk/; revision=6141
* remove category regex, dumb idea, sorry I did itAlec Warner2007-03-031-6/+0
| | | | svn path=/main/trunk/; revision=6138
* Fix types.InstanceType test which is failing now for some reason.Zac Medico2007-03-031-1/+1
| | | | svn path=/main/trunk/; revision=6137
* For bug #169046, fill in the --tree display with "nomerge" nodes so that the ↵Zac Medico2007-03-031-27/+75
| | | | | | user can always see at lease 1 parent on any non-root node. Packages may appear in the display list multiple times, and will be marked "nomerge" when their position in the list does not correspond to actual merge order. svn path=/main/trunk/; revision=6135
* When emerge automatically resumes, add --ignore-default-opts to the command ↵Zac Medico2007-03-021-2/+14
| | | | | | line in order to prevent things like --ask from leaking in via EMERGE_DEFAULT_OPTS. Thanks to Peter Weller <welp@gentoo.org> for reporting. svn path=/main/trunk/; revision=6133