Skip to content

Commit

Permalink
- osc.cli.request.request, osc.cli.review.review: use relative path e…
Browse files Browse the repository at this point in the history
…xpressions

The api doesn't like a context item expression followed by a path expression when
searching for requests. Using a relative path expression here is equivalent to
the former.
  • Loading branch information
marcus-h committed Nov 22, 2012
1 parent 4996ac3 commit db1b99d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion osc/cli/request/request.py
Expand Up @@ -154,7 +154,7 @@ def _create_delete_actions(cls, request, delete):
@classmethod
def _find_requests(cls, project, package, info):
"""Returns a collection of requests."""
xpb = XPathBuilder()
xpb = XPathBuilder(is_relative=True)
pred = xpb.dummy()
xp = xpb.dummy()
# state has at least one element
Expand Down
2 changes: 1 addition & 1 deletion osc/cli/review/review.py
Expand Up @@ -116,7 +116,7 @@ def _add_states(cls, xpb, pred, states):
@classmethod
def _find_requests(cls, tgt_project, tgt_package, info):
"""Returns a collection of requests."""
xpb = XPathBuilder()
xpb = XPathBuilder(is_relative=True)
xp = xpb.dummy()
by_kind, xp = cls._build_by_predicate(xpb, info, info.state)
if not by_kind:
Expand Down

0 comments on commit db1b99d

Please sign in to comment.