Skip to content

Commit

Permalink
fix zypper lr command (#259)
Browse files Browse the repository at this point in the history
fixes #258
  • Loading branch information
furlongm authored Nov 12, 2020
1 parent 87ac710 commit 68a6ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/patchman-client
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ get_repos() {
if [ ${verbose} == 1 ] ; then
echo 'Finding zypper repos...'
fi
for i in $(zypper --no-refresh lr -E -u --details | tail -n +5 | cut -d "|" -f 2,3,7,9 | sed -e "s/ *|/ ${host_arch} |/" -e "s/^ /'/g" -e "s/ *| */' '/g" -e "s/ *$/'/g") ; do
for i in $(zypper -q --no-refresh lr -E -u --details | grep -v ^$ | tail -n +3 | cut -d "|" -f 2,3,7,9 | sed -e "s/ *|/ ${host_arch} |/" -e "s/^ /'/g" -e "s/ *| */' '/g" -e "s/ *$/'/g") ; do
echo \'rpm\' ${i} >> "${tmpfile_rep}"
done
fi
Expand Down

0 comments on commit 68a6ca7

Please sign in to comment.