Skip to content

Commit

Permalink
Use --repoid --all
Browse files Browse the repository at this point in the history
as we do in mtps-run-tests.
Needed in RHEL 7.
  • Loading branch information
jpopelka committed Apr 30, 2024
1 parent d941d7b commit 5f2c396
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mtps-get-task
Original file line number Diff line number Diff line change
Expand Up @@ -779,9 +779,8 @@ echo "$repo_file_text"

# Query packages in the created repo
nevras_in_repo="$(
repoquery \
--qf "%{repoid} %{name}-%{epoch}:%{version}-%{release}.%{arch}" \
--repo "$repo_name" 2>&1 | \
repoquery --repoid=${repo_name} --all \

Check warning

Code scanning / shellcheck

Double quote to prevent globbing and word splitting. Warning

Double quote to prevent globbing and word splitting.
--qf "%{repoid} %{name}-%{epoch}:%{version}-%{release}.%{arch}" 2>&1 | \
sed -n -e "/^${repo_name}[[:space:]]/ s/^${repo_name}[[:space:]]//p"
)"
# Exclude SRPMs
Expand Down

0 comments on commit 5f2c396

Please sign in to comment.