File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ protocol=1
55verbose=0
66debug=0
77report=0
8+ local_updates=0
89tags=' '
910
1011function 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
You can’t perform that action at this time.
0 commit comments