Update upgrade-start-pkg-extract to use dnf package

This commit replaces the use of "repoquery" in the
upgrade-start-pkg-extract utility with "dnf repoquery".

Story: 2007403
Task: 39059
Change-Id: I8bc86af11cc7adc85b6d5d30f3a7368581c7988c
Signed-off-by: Carmen Rata <carmen.rata@windriver.com>
This commit is contained in:
Carmen Rata 2020-03-13 12:14:45 -04:00
parent 05f4bcc83d
commit cf8fc1bfff

View File

@ -82,7 +82,7 @@ function extract_pkg() {
cd $WORKDIR cd $WORKDIR
# Find the RPM # Find the RPM
local pkgfile=$(repoquery --repofrompath base,${TGT_BASE_REPO} ${TGT_PATCHES_REPO_OPT} --location -q ${pkgname}) local pkgfile=$(dnf repoquery --repofrompath base,${TGT_BASE_REPO} ${TGT_PATCHES_REPO_OPT} --location -q ${pkgname})
if [ -z "${pkgfile}" ]; then if [ -z "${pkgfile}" ]; then
logger -t $0 "Could not find ${pkgname}" logger -t $0 "Could not find ${pkgname}"
exit 1 exit 1