Skip to content

Commit

Permalink
Improvements after testing hitachienergy#536
Browse files Browse the repository at this point in the history
  • Loading branch information
to-bar committed Oct 9, 2019
1 parent 553d48f commit 4cf2f2b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

# VERSION 1.2.3
# VERSION 1.0.0

set -euo pipefail

Expand Down Expand Up @@ -138,7 +138,7 @@ get_package_dependencies_with_arch() {
# $1 reserved for result
local package="$2"

local query_output=$(repoquery --requires --resolve --queryformat '%{name}.%{arch}' --archlist=x86_64,noarch "$package" 2>&1) ||
local query_output=$(repoquery --requires --resolve --queryformat '%{name}.%{arch}' --archlist=x86_64,noarch "$package") ||
exit_with_error "repoquery failed for dependencies of package: $package with exit code: $?, output was: $query_output"

if [[ -z $query_output ]]; then
Expand All @@ -156,7 +156,7 @@ get_package_with_version_arch() {
# $1 reserved for result
local package="$2"

local query_output=$(repoquery --queryformat '%{ui_nevra}' --archlist=x86_64,noarch "$package" 2>&1) ||
local query_output=$(repoquery --queryformat '%{ui_nevra}' --archlist=x86_64,noarch "$package") ||
exit_with_error "repoquery failed for package: $package with exit code: $?, output was: $query_output"

# yumdownloader doesn't set error code if repoquery returns empty output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ systemd-sysv

[packages]
audit # for docker-ce
audit-libs # for docker-ce
bash-completion
ca-certificates
cifs-utils
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

# VERSION 1.2.3
# VERSION 1.0.0

set -euo pipefail

Expand Down Expand Up @@ -155,7 +155,7 @@ get_package_dependencies_with_arch() {
# $1 reserved for result
local package="$2"

local query_output=$(repoquery --requires --resolve --queryformat '%{name}.%{arch}' --archlist=x86_64,noarch "$package" 2>&1) ||
local query_output=$(repoquery --requires --resolve --queryformat '%{name}.%{arch}' --archlist=x86_64,noarch "$package") ||
exit_with_error "repoquery failed for dependencies of package: $package with exit code: $?, output was: $query_output"

if [[ -z $query_output ]]; then
Expand All @@ -173,7 +173,7 @@ get_package_with_version_arch() {
# $1 reserved for result
local package="$2"

local query_output=$(repoquery --queryformat '%{ui_nevra}' --archlist=x86_64,noarch "$package" 2>&1) ||
local query_output=$(repoquery --queryformat '%{ui_nevra}' --archlist=x86_64,noarch "$package") ||
exit_with_error "repoquery failed for package: $package with exit code: $?, output was: $query_output"

# yumdownloader doesn't set error code if repoquery returns empty output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ yum-utils

[packages]
audit # for docker-ce
audit-libs # for docker-ce
bash-completion
ca-certificates
cifs-utils
Expand Down

0 comments on commit 4cf2f2b

Please sign in to comment.