Skip to content

Commit

Permalink
allow forcing the client to find local updates
Browse files Browse the repository at this point in the history
  • Loading branch information
furlongm committed Feb 14, 2020
1 parent d582232 commit b7a7db1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/patchman-client
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ protocol=1
verbose=0
debug=0
report=0
local_updates=0
tags=''

function usage {
Expand Down Expand Up @@ -36,6 +37,9 @@ function parseopts {
n)
no_repo_check=1
;;
u)
local_updates=1
;;
r)
cli_report=1
;;
Expand Down Expand Up @@ -297,9 +301,9 @@ function get_repos {
fi
j=$(echo ${i} | sed -e "s#'${id}' '${name}'#'${name}' '${id}' '${priority}'#")
redhat_repo=$(echo ${j} | grep -e "https://.*/XMLRPC.*")
if [ ${?} == 0 ] ; then
if [ ${?} == 0 ] || [ "${local_updates}" == "1" ] ; then
if [ ${verbose} == 1 ] ; then
echo "Red Hat repo found, finding updates locally for ${id}"
echo "Finding updates locally for ${id}"
fi
get_updates ${id}
fi
Expand Down

0 comments on commit b7a7db1

Please sign in to comment.