Skip to content

Commit b7a7db1

Browse files
committed
allow forcing the client to find local updates
1 parent d582232 commit b7a7db1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

client/patchman-client

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ protocol=1
55
verbose=0
66
debug=0
77
report=0
8+
local_updates=0
89
tags=''
910

1011
function usage {
@@ -36,6 +37,9 @@ function parseopts {
3637
n)
3738
no_repo_check=1
3839
;;
40+
u)
41+
local_updates=1
42+
;;
3943
r)
4044
cli_report=1
4145
;;
@@ -297,9 +301,9 @@ function get_repos {
297301
fi
298302
j=$(echo ${i} | sed -e "s#'${id}' '${name}'#'${name}' '${id}' '${priority}'#")
299303
redhat_repo=$(echo ${j} | grep -e "https://.*/XMLRPC.*")
300-
if [ ${?} == 0 ] ; then
304+
if [ ${?} == 0 ] || [ "${local_updates}" == "1" ] ; then
301305
if [ ${verbose} == 1 ] ; then
302-
echo "Red Hat repo found, finding updates locally for ${id}"
306+
echo "Finding updates locally for ${id}"
303307
fi
304308
get_updates ${id}
305309
fi

0 commit comments

Comments
 (0)