summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Make depgraph.display_problems() send unsatisfied dependency ouput to stdout,Zac Medico2008-11-151-4/+6
| | | | | | for parsing by programs such as autounmask. svn path=/main/trunk/; revision=11949
* Bug #246853 - Redirect all ouput from depgraph.display_problems() to stderr.Zac Medico2008-11-151-0/+22
| | | | svn path=/main/trunk/; revision=11948
* Bug #236207 - Replace some hardcoded colors with color codes, and useZac Medico2008-11-151-23/+33
| | | | | | portage.output.EOutput() where appropriate. svn path=/main/trunk/; revision=11935
* Bug #173284 - Update config update counting code in chk_updated_cfg_files()Zac Medico2008-11-151-3/+3
| | | | | | so hidden directories are ignored. svn path=/main/trunk/; revision=11933
* Bug #236714 - Handle PortagePackageException raised from Manifest.create().Zac Medico2008-11-151-0/+3
| | | | svn path=/main/trunk/; revision=11926
* Make digestgen() handle PermissionDenied internally by returning failure, soZac Medico2008-11-151-1/+5
| | | | | | callers like repoman don't need exception handling. svn path=/main/trunk/; revision=11924
* Bug #236683 - Fix PermissionDenied handling to report the exception type.Zac Medico2008-11-151-1/+1
| | | | svn path=/main/trunk/; revision=11922
* Bug #243022 - Inside dblink.mergeme(), when merging a directory and a symlinkZac Medico2008-11-151-1/+2
| | | | | | | is in the way, verify that if points to a directory before accepting it, otherwise move it out of the way. svn path=/main/trunk/; revision=11920
* Bug #216190 - Make dblink.treewalk() bail out rather than install a packageZac Medico2008-11-151-2/+23
| | | | | | with file paths containing newlines. svn path=/main/trunk/; revision=11918
* Fix new* and do* ebuild helpers to generate consistent error messages forZac Medico2008-11-151-0/+12
| | | | | | | | missing files and generate an appropriate QA Notice when such an error is detected in the build log. Thanks to Diego 'Flameeyes' Pettenò <flameeyes@g.o> for the suggestion. svn path=/main/trunk/; revision=11916
* Make the EbuildQuote check filter out matches that appear to be an argumentZac Medico2008-11-141-2/+14
| | | | | | | | to a message command. For example: false || ewarn "foo $WORKDIR/bar baz" Thanks to Diego 'Flameeyes' Pettenò <flameeyes@g.o> for reporting this issue (currently triggered by ruby-prof-0.7.0.ebuild). svn path=/main/trunk/; revision=11913
* Use apply_secpass_permissions() to avoid OperationNotPermitted errors whenZac Medico2008-11-131-3/+3
| | | | | | not allowed to chown files to root uid. svn path=/main/trunk/; revision=11873
* Use grabfile() instead of grablines(), to ignore empty lines.Zac Medico2008-11-131-4/+4
| | | | svn path=/main/trunk/; revision=11872
* Add quote from GLEP 42 about permission bits.Zac Medico2008-11-131-0/+4
| | | | svn path=/main/trunk/; revision=11871
* Misc fixes and cleanups in NewsManager.Zac Medico2008-11-131-68/+71
| | | | svn path=/main/trunk/; revision=11870
* Return early from NewsManager.updateItems() if the news path listdir callZac Medico2008-11-131-6/+4
| | | | | | fails. svn path=/main/trunk/; revision=11869
* Always return early from NewsManager.updateItems() if self.unread_path can'tZac Medico2008-11-131-10/+12
| | | | | | be created. svn path=/main/trunk/; revision=11868
* Use a simpler approach instead of implementing NewsItem.__getattr__().Zac Medico2008-11-121-5/+3
| | | | svn path=/main/trunk/; revision=11867
* * Add NewsItem.isValid() and DisplayRestriction.isValid() methods and useZac Medico2008-11-121-5/+33
| | | | | | | use them to check validity inside NewsManager.updateItems(). * Make DisplayInstalledRestriction.isValid() check validity of the atom. svn path=/main/trunk/; revision=11866
* Sort the return value from cpv_all() inside vardbapi._counter_hash() insteadZac Medico2008-11-121-2/+4
| | | | | | of sorting them in side cpv_all(). Thanks to Brian Harring for the suggestion. svn path=/main/trunk/; revision=11865
* Inside NewsManager.updateItems(), use a mutable set for skiplist and sort theZac Medico2008-11-121-3/+4
| | | | | | contents when writing the file. svn path=/main/trunk/; revision=11864
* Instead of raising a TypeError from the NewsItem constructor, check the pathZac Medico2008-11-121-6/+4
| | | | | | inside NewsManager.updateItems() before the NewsItem constructor is called. svn path=/main/trunk/; revision=11863
* Use a frozenset to optimize skiplist containment checks insideZac Medico2008-11-121-1/+1
| | | | | | NewsManager.updateItems(). svn path=/main/trunk/; revision=11862
* Bug #246451 - Inside SecuritySet._reduce(), use portdbapi.xmatch("match-all")Zac Medico2008-11-121-1/+1
| | | | | | | in order do be consistent with portage.glsa.getMinUpgrade() which also uses match-all. svn path=/main/trunk/; revision=11861
* Make post_emerge() exit early if it detects that the vdb state hasn't changed.v2.2_rc14Zac Medico2008-11-113-0/+26
| | | | | | | This works by comparing a hash of the COUNTER values for all packages in the vdb. svn path=/main/trunk/; revision=11859
* Allow --keep-going to continue in some cases when a runtime dependency hasZac Medico2008-11-111-2/+9
| | | | | | | failed to build or install. This involves pruning off the parts of the graph containing installed packages with unsatisfied dependencies. svn path=/main/trunk/; revision=11858
* Simplify code for cloning config instances inside Scheduler.merge().Zac Medico2008-11-111-1/+1
| | | | svn path=/main/trunk/; revision=11856
* Make FindPortdir() fall back to have_profile_dir() checks if it can't matchZac Medico2008-11-111-6/+20
| | | | | | | | the current location with anything from PORTDIR_OVERLAY. Assume that an overlay will contain at least a "repo_name" file while a master repo (portdir) will contain at least a "profiles.desc" file. svn path=/main/trunk/; revision=11855
* Make FindPortdir() return (None, None, None) on failure, instead of raisingZac Medico2008-11-111-1/+1
| | | | | | a potentially ambiguous ValueError. svn path=/main/trunk/; revision=11853
* Inside have_profile_dir(), check for existence of profiles.desc since thatZac Medico2008-11-111-1/+1
| | | | | | makes a little more sense thatn checking for package.mask. svn path=/main/trunk/; revision=11852
* Fix logic from previous commit in Scheduler._choose_pkg() to ensure thatZac Medico2008-11-111-1/+2
| | | | | | the --nodeps code is only triggered when --jobs > 1. svn path=/main/trunk/; revision=11848
* When in --nodeps mode, make Scheduler._set_digraph() discard the digraph andZac Medico2008-11-111-3/+4
| | | | | | make Scheduler._choose_pkg() always return the task at the front of the queue. svn path=/main/trunk/; revision=11847
* Inside depgraph.loadResumeCommand(), initialize self._scheduler_graph whenZac Medico2008-11-111-0/+1
| | | | | | | in --nodeps mode in order to avoid an AttributeError later when self.schedulerGraph() is called. svn path=/main/trunk/; revision=11846
* Fix --jobs parallel scheduling to ensure that temporary simultaneousZac Medico2008-11-101-39/+35
| | | | | | | | | installation of conflicting packages is avoided when appropriate (especially for !!atom blockers), but allowed in specific cases that require it. This is accomplished by reversing specific uninstall edges in the digraph, while possibly leaving some edges in there original state. svn path=/main/trunk/; revision=11845
* Revert r11839 since it's not necessarily desired to invert all uninstallZac Medico2008-11-101-4/+5
| | | | | | | edges. TODO: Invert only the specific edges that the depgraph has decided are necessary and allowed to be inverted. svn path=/main/trunk/; revision=11844
* In the LinkageMap.findConsumers() docstring, add a note about incompatibilityZac Medico2008-11-101-1/+6
| | | | | | with symlinks created by binutils-config. svn path=/main/trunk/; revision=11843
* * Use noiselevel=-1 for preserve-libs ">>> needed" and "<<< !needed" messagesZac Medico2008-11-091-3/+5
| | | | | | | so that they're show even without --verbose mode. * Sort files for the ">>> needed" display. svn path=/main/trunk/; revision=11842
* Remove unused formatter code in show_invalid_depstring_notice().Zac Medico2008-11-091-3/+0
| | | | svn path=/main/trunk/; revision=11841
* Make show_invalid_depstring_notice() send output to stderr via writemsg_level().Zac Medico2008-11-091-12/+5
| | | | svn path=/main/trunk/; revision=11840
* Inside Scheduler._reverse_uninstall_edges(), iover all nodes rather than justZac Medico2008-11-091-1/+4
| | | | | | | | | | the merge list, because some uninstall nodes may not be in the merge list since they will be performed as part of an upgrade within a slot. This solves a problem with Scheduler._choose_pkg() not parallelizing in some cases when it should, due to an uninstall node not having it's edge reversed like it's supposed to. svn path=/main/trunk/; revision=11839
* Move initialization of Scheduler._background from the constructor to theZac Medico2008-11-091-13/+32
| | | | | | | | merge() method so that a potential InvalidDependString exception can be handled there, causing merge() to return unsuccessfully. This avoids having to raise an exception from the constructor. svn path=/main/trunk/; revision=11838
* Add PROPERTIES=interactive support in depgraph.display() and theZac Medico2008-11-091-0/+20
| | | | | | PackageCounters class. svn path=/main/trunk/; revision=11837
* 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