Skip to content

Commit

Permalink
Fix OBS limit error when searching php, test, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyunhe committed Apr 3, 2020
1 parent afe7198 commit d5aa42d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.8.1] - 2020-04-03

### Fixed

- OBS limit error when searching php, test, etc.

## [0.8.0]

### Changed
Expand Down Expand Up @@ -117,7 +123,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Choose package and install
- Keep or remove repository after installation

[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.8.0...HEAD
[Unreleased]: https://github.com/openSUSE-zh/opi/compare/v0.8.1...HEAD
[0.8.1]: https://github.com/openSUSE-zh/opi/compare/v0.8.0...v0.8.1
[0.8.0]: https://github.com/openSUSE-zh/opi/compare/v0.7.1...v0.8.0
[0.7.1]: https://github.com/openSUSE-zh/opi/compare/v0.7.0...v0.7.1
[0.7.0]: https://github.com/openSUSE-zh/opi/compare/v0.6.0...v0.7.0
Expand Down
3 changes: 2 additions & 1 deletion opi
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ sub search_published_binary {
my $query_string = prepare_query_string(@_);
my $xpath = "contains-ic(\@name, $query_string) and path/project='$distribution'";

my $url = $obs_apiroot . $endpoint . '?match=' . uri_escape($xpath);
# NOTE limit=0 fix 413 errors when searching php, test, etc.
my $url = $obs_apiroot . $endpoint . '?match=' . uri_escape($xpath) . '&limit=0';

my $proxy_url = $proxy_root . '?obs_api_link=' . uri_escape($url) . '&obs_instance=' . $obs_instance;

Expand Down

0 comments on commit d5aa42d

Please sign in to comment.