Skip to content

Commit 68a6ca7

Browse files
authored
fix zypper lr command (#259)
fixes #258
1 parent 87ac710 commit 68a6ca7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/patchman-client

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ get_repos() {
331331
if [ ${verbose} == 1 ] ; then
332332
echo 'Finding zypper repos...'
333333
fi
334-
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
334+
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
335335
echo \'rpm\' ${i} >> "${tmpfile_rep}"
336336
done
337337
fi

0 commit comments

Comments
 (0)