Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 195594 Details for
Bug 275217
sys-apps/portage: implement backtracking for slot conflicts
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
resolve the circular dep between Scheduler and depgraph; mark all functions as local that aren't used outside of depgraph
part1.patch (text/plain), 3.80 KB, created by
Sebastian Luther (few)
on 2009-06-23 19:57:40 UTC
(
hide
)
Description:
resolve the circular dep between Scheduler and depgraph; mark all functions as local that aren't used outside of depgraph
Filename:
MIME Type:
Creator:
Sebastian Luther (few)
Created:
2009-06-23 19:57:40 UTC
Size:
3.80 KB
patch
obsolete
>Index: pym/_emerge/Scheduler.py >=================================================================== >--- pym/_emerge/Scheduler.py (revision 13674) >+++ pym/_emerge/Scheduler.py (working copy) >@@ -27,6 +27,7 @@ > from _emerge.create_depgraph_params import create_depgraph_params > from _emerge.create_world_atom import create_world_atom > from _emerge.DepPriority import DepPriority >+from _emerge.depgraph import depgraph > from _emerge.EbuildFetcher import EbuildFetcher > from _emerge.EbuildPhase import EbuildPhase > from _emerge.emergelog import emergelog, _emerge_log_dir >@@ -42,12 +43,6 @@ > from _emerge.SequentialTaskQueue import SequentialTaskQueue > from _emerge.show_invalid_depstring_notice import show_invalid_depstring_notice > >-import portage.proxy.lazyimport >-import portage.proxy as proxy >-proxy.lazyimport.lazyimport(globals(), >- '_emerge.depgraph:depgraph', >-) >- > class Scheduler(PollScheduler): > > _opts_ignore_blockers = \ >Index: pym/_emerge/depgraph.py >=================================================================== >--- pym/_emerge/depgraph.py (revision 13674) >+++ pym/_emerge/depgraph.py (working copy) >@@ -47,12 +47,6 @@ > from _emerge.UnmergeDepPriority import UnmergeDepPriority > from _emerge.visible import visible > >-import portage.proxy.lazyimport >-import portage.proxy as proxy >-proxy.lazyimport.lazyimport(globals(), >- '_emerge.Scheduler:Scheduler', >-) >-#from _emerge.Scheduler import Scheduler > class depgraph(object): > > pkg_tree_map = RootConfig.pkg_tree_map >@@ -69,7 +63,8 @@ > self.edebug = 1 > self.spinner = spinner > self._running_root = trees["/"]["root_config"] >- self._opts_no_restart = Scheduler._opts_no_restart >+ self._opts_no_restart = frozenset(["--buildpkgonly", >+ "--fetchonly", "--fetch-all-uri", "--pretend"]) > self.pkgsettings = {} > # Maps slot atom to package for each Package added to the graph. > self._slot_pkg_map = {} >@@ -2235,7 +2230,7 @@ > self._pkg_cache[pkg] = pkg > return pkg > >- def validate_blockers(self): >+ def _validate_blockers(self): > """Remove any blockers from the digraph that do not match any of the > packages within the graph. If necessary, create hard deps to ensure > correct merge order such that mutually blocking packages are never >@@ -2625,7 +2620,7 @@ > if not self._complete_graph(): > raise self._unknown_internal_error() > >- if not self.validate_blockers(): >+ if not self._validate_blockers(): > raise self._unknown_internal_error() > > if self._slot_collision_info: >@@ -3772,7 +3767,7 @@ > if "--changelog" in self.myopts: > inst_matches = vardb.match(pkg.slot_atom) > if inst_matches: >- changelogs.extend(self.calc_changelog( >+ changelogs.extend(self._calc_changelog( > portdb.findname(pkg_key), > inst_matches[0], pkg_key)) > else: >@@ -4267,7 +4262,7 @@ > show_mask_docs() > print > >- def calc_changelog(self,ebuildpath,current,next): >+ def _calc_changelog(self,ebuildpath,current,next): > if ebuildpath == None or not os.path.exists(ebuildpath): > return [] > current = '-'.join(portage.catpkgsplit(current)[1:]) >@@ -4301,7 +4296,7 @@ > return [] > return divisions > >- def find_changelog_tags(self,changelog): >+ def _find_changelog_tags(self,changelog): > divs = [] > release = None > while 1: >@@ -4376,7 +4371,7 @@ > if world_locked: > world_set.unlock() > >- def loadResumeCommand(self, resume_data, skip_masked=True, >+ def _loadResumeCommand(self, resume_data, skip_masked=True, > skip_missing=True): > """ > Add a resume command to the graph and validate it in the process. This >@@ -4802,7 +4797,7 @@ > mydepgraph = depgraph(settings, trees, > myopts, myparams, spinner) > try: >- success = mydepgraph.loadResumeCommand(mtimedb["resume"], >+ success = mydepgraph._loadResumeCommand(mtimedb["resume"], > skip_masked=skip_masked) > except depgraph.UnsatisfiedResumeDep, e: > if not skip_unsatisfied:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 275217
: 195594 |
195595
|
195597
|
195653
|
196212
|
196543