summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
...
* When adding parent directories to contents insideZac Medico2008-11-091-1/+1
| | | | | | | dblink._add_preserve_libs_to_contents(), account for the trailing slash on $ROOT in the while loop. svn path=/main/trunk/; revision=11836
* Handle a corner case inside dblink._add_preserve_libs_to_contents() in whichZac Medico2008-11-091-5/+14
| | | | | | a path to be preserved doesn't exist in the contents of the installed instance. svn path=/main/trunk/; revision=11835
* Update docstring for dblink._find_libs_to_preserve().Zac Medico2008-11-091-2/+2
| | | | svn path=/main/trunk/; revision=11834
* Inside vardbapi.removeFromContents(), automatically clear the contents cacheZac Medico2008-11-091-0/+1
| | | | | | of the dblink instance in case an existing one was passed in. svn path=/main/trunk/; revision=11833
* Bug #243030 - In PreservedLibraryConsumerSet.load(), avoid rebuilding packagesZac Medico2008-11-091-1/+6
| | | | | | | just because they contain preserved libs that happen to be consumers of other preserved libs. svn path=/main/trunk/; revision=11832
* Bug #245362 - Rewrite preserve-libs preservation code so that it always reliesZac Medico2008-11-091-158/+121
| | | | | | | | | | | | | on inode comparisons rather than string comparisons. Instead of injecting libraries into $D before the files are merged, the preservation code now executes after the files are merged but before the old version is unmerged. After determining which libs to preserve, the CONTENTS are updated to include those libs. The PreservedLibsRegistry.register() call is now done just after the temporary vdb entry has been moved into place, guaranteeing that a valid vdb entry is in place so that the unregistration code from bug #210501 is no longer needed. svn path=/main/trunk/; revision=11831
* Inside LinkageMap, use self._obj_key() whenever possible.Zac Medico2008-11-091-13/+6
| | | | svn path=/main/trunk/; revision=11830
* Fix $ROOT handlink inside display_preserved_libs().Zac Medico2008-11-081-3/+3
| | | | svn path=/main/trunk/; revision=11829
* With python-2.6, importing the Crypto.Hash.MD5 and Crypto.Hash.SHA modulesZac Medico2008-11-081-4/+1
| | | | | | | | | | | | from pycrypto triggers warnings since those modules are implemented using the deprecated md5 and sha modules from python's stdlib. So, in order to avoid the warning and the inferior hash implementations that come with them, never use these particular modules from pycrypto. Instead, use hashlib or directly use stdlib's md5 and sha modules if necessary. Thanks to Markus Peloquin for reporting. svn path=/main/trunk/; revision=11828
* Handle CommandNotFound exceptions if the scanelf binary happens to be missing,Zac Medico2008-11-082-21/+51
| | | | | | and disable preserve-libs code in that case. svn path=/main/trunk/; revision=11827
* In LinkageMap.rebuild(), immediately raise a CommandNotFound exception ifZac Medico2008-11-071-4/+5
| | | | | | | | | scanelf is missing since otherwise it will lead to a KeyError later on from findConsumers or findProviders. This will allow the caller to handle the CommandNotFound exception if necessary, and skip any findConsumers or findProviders since they won't be able to return valid results. svn path=/main/trunk/; revision=11826
* Handle a potential OSError that occurs if the scanelf binary is missingZac Medico2008-11-071-14/+20
| | | | | | when LinkageMap.rebuild() is called. svn path=/main/trunk/; revision=11825
* Replace NEEDED.ELF.2 strings with references to LinkageMap._needed_aux_key.Zac Medico2008-11-071-3/+5
| | | | svn path=/main/trunk/; revision=11824
* Improve the error message that's generated in LinkageMap.rebuild() for corruptZac Medico2008-11-071-5/+9
| | | | | | NEEDED.ELF.2 entries. svn path=/main/trunk/; revision=11823
* When calling scanelf inside LinkageMap.rebuild(), join paths with $ROOT whenZac Medico2008-11-071-3/+16
| | | | | | generating the arguments and then strip $ROOT from the paths in the output. svn path=/main/trunk/; revision=11822
* Fix LinkageMap.rebuild() so that the data from include_file overrides theZac Medico2008-11-071-12/+32
| | | | | | | data from any previously installed files. This prevent possible corruption of the data since only one set of data can be correct for a given file. svn path=/main/trunk/; revision=11821
* Combine redundant arch_map code inside LinkageMap.rebuild().Zac Medico2008-11-071-8/+4
| | | | svn path=/main/trunk/; revision=11819
* Swap the locations of the arch and soname keys inside LinkageMap._libs inZac Medico2008-11-071-24/+24
| | | | | | | order to conserve memory. This new branching layout uses fewer dict instances since the number of sonames is much larger than the number of archs. svn path=/main/trunk/; revision=11818
* Inside LinkageMap._libs, use a SlotDict to store consumers and providers,Zac Medico2008-11-071-9/+24
| | | | | | to use less memory than a normal dict. svn path=/main/trunk/; revision=11817
* Bug #245932 - Pass use_mask and use_force parameters into recursiveZac Medico2008-11-071-1/+2
| | | | | | | _expand_new_virtuals() calls, fixing a TypeError which is triggered inside portage.dep._use_dep._eval_qa_conditionals(). svn path=/main/trunk/; revision=11816
* Remove the special package.keywords mask warning from bug #223447 sinceZac Medico2008-11-061-34/+4
| | | | | | | --depclean now uses the depgraph class and therefore should be more consistent with the update algorithm. svn path=/main/trunk/; revision=11815
* Bug #245661 - Never enable --complete-graph automatically since it's confusingZac Medico2008-11-061-14/+3
| | | | | | for users. svn path=/main/trunk/; revision=11814
* In Atom.__setattr__(), include inputs in case it helps for debugging withZac Medico2008-11-061-1/+2
| | | | | | derived classes. Thanks to Brian Harring for the suggestion. svn path=/main/trunk/; revision=11813
* Override Atom.__setattr__() to make Atom instances immutable. Thanks to BrianZac Medico2008-11-051-14/+20
| | | | | | Harring for the suggestion. svn path=/main/trunk/; revision=11812
* Fix broken reference to self inside unmerge().Zac Medico2008-11-041-1/+2
| | | | svn path=/main/trunk/; revision=11809
* Synchronize portage update/restart logic in dblink.merge() andZac Medico2008-11-042-10/+5
| | | | | | | depgraph.display() so it's consistent with Scheduler._is_restart_necessary(). Thanks to Jeremy Olexa <darkside@g.o> for reporting. svn path=/main/trunk/; revision=11808
* Free some memory by clearing the LinkageMap cache when it's not needed.Zac Medico2008-11-043-0/+3
| | | | svn path=/main/trunk/; revision=11807
* Bug #245362 - Use tuples of (device, inode) for all path comparisons insideZac Medico2008-11-042-25/+32
| | | | | | | | LinkageMap, so that they work regardless of path differences due to symlinked directories. TODO: Fix other preserve-libs code, such as dblink._preserve_libs(), to use this approach for path comparisons. svn path=/main/trunk/; revision=11806
* Bug #245358 - For unsatisfied dependencies, display the parent nodes and theZac Medico2008-11-031-6/+18
| | | | | | argument that pulled them in. svn path=/main/trunk/; revision=11805
* Bug #245356 - Filter POSIXLY_CORRECT from the ebuild environment since itZac Medico2008-11-031-0/+5
| | | | | | breaks stuff. svn path=/main/trunk/; revision=11804
* Import shutil globally.Zac Medico2008-11-021-5/+3
| | | | svn path=/main/trunk/; revision=11802
* Remove duplicate code inside EbuildFetchPretend._execute().Zac Medico2008-11-021-3/+0
| | | | svn path=/main/trunk/; revision=11801
* Remove locking from EbuildFetchPretend since it uses a private temp directoryZac Medico2008-11-021-5/+10
| | | | | | now (since bug #245231). svn path=/main/trunk/; revision=11800
* Bug #245231 - Make EbuildFetchPretend use a private temp directory in orderZac Medico2008-11-021-2/+18
| | | | | | to avoid locking the main one. svn path=/main/trunk/; revision=11796
* In SetConfig.getSetAtoms(), access self.psets directly in order to avoidv2.2_rc13Zac Medico2008-11-011-1/+2
| | | | | | | making a copy and also to avoid potential swallowing of an unexpected KeyError. svn path=/main/trunk/; revision=11791
* In config.setcpv(), ensure that A and AA aren't in the env dict.Zac Medico2008-11-011-1/+1
| | | | svn path=/main/trunk/; revision=11790
* In _validate_deps(), show the ebuild version to clarify which ebuild theZac Medico2008-11-011-9/+13
| | | | | | errors belong to. svn path=/main/trunk/; revision=11789
* TODO: In case some elf files collide with blocked packages,Zac Medico2008-11-011-0/+3
| | | | | | | ensure that NEEDED data from include_file overrides the stale NEEDED data from the colliding files in the blocked packages. svn path=/main/trunk/; revision=11788
* In Scheduler._calc_resume_list(), use self.pkgsettings instead of the theZac Medico2008-11-011-1/+1
| | | | | | temportary depgraph's. svn path=/main/trunk/; revision=11787
* Bug #239015 - Disable unmerge operations for EverythingSet/@installed.Zac Medico2008-11-011-1/+1
| | | | svn path=/main/trunk/; revision=11786
* Remove broken pickle_write() since it can't possibly be used.Zac Medico2008-11-011-15/+2
| | | | svn path=/main/trunk/; revision=11783
* * In fetch(), ensure that pkg_nofetch is never called more than once.Zac Medico2008-11-011-6/+13
| | | | | | | * In _validate_deps(), revert back to using aux_get since the config instance does not cache SRC_URI. svn path=/main/trunk/; revision=11782
* Remove unnecessary handler for plain "Exception" from lstat() call inZac Medico2008-11-011-10/+0
| | | | | | dblink.mergeme(). svn path=/main/trunk/; revision=11781
* Also call PreservedLibsRegistry.pruneNonExisting() after obtaining a lockZac Medico2008-11-012-0/+2
| | | | | | and loading it for merge or unmerge. svn path=/main/trunk/; revision=11780
* Explicitly load the preserved libs registry after obtaining a lock for mergeZac Medico2008-11-012-0/+2
| | | | | | | or unmerge, in case the registry has been changed by a parallel emerge instance. svn path=/main/trunk/; revision=11779
* Before returning from PreservedLibsRegistry.store(), update self._data_orig.Zac Medico2008-11-011-0/+2
| | | | svn path=/main/trunk/; revision=11778
* Rename "object" variable to avoid name collision with the builtin class.Zac Medico2008-11-011-4/+4
| | | | svn path=/main/trunk/; revision=11777
* Define __all__ and remove unused imports.Zac Medico2008-11-011-3/+4
| | | | svn path=/main/trunk/; revision=11776
* Define __all__ and remove unused import.Zac Medico2008-11-011-1/+3
| | | | svn path=/main/trunk/; revision=11775
* Remove unused imports.Zac Medico2008-11-011-3/+3
| | | | svn path=/main/trunk/; revision=11774