def resolve_context(self, verbosity=<NUM_LIT:0>, max_fails=-<NUM_LIT:1>, timestamp=None,<EOL>callback=None, buf=None, package_load_callback=None):
package_filter = PackageFilterList.from_pod(self.package_filter)<EOL>context = ResolvedContext(<EOL>self.request,<EOL>package_paths=self.packages_path,<EOL>package_filter=package_filter,<EOL>verbosity=verbosity,<EOL>max_fails=max_fails,<EOL>timestamp=timestamp,<EOL>buf=buf,<EOL>callback=callback,<EOL>package_load_callback=package_load_callback,<EOL>caching=self.caching)<EOL>if context.success:<EOL><INDENT>if self._context and self._context.load_path:<EOL><INDENT>context.set_load_path(self._context.load_path)<EOL><DEDENT>self._set_context(context)<EOL>self._modified = True<EOL><DEDENT>return context<EOL>
Update the current context by performing a re-resolve.

        The newly resolved context is only applied if it is a successful solve.

        Returns:
            `ResolvedContext` object, which may be a successful or failed solve.