Skip to content

Commit

Permalink
Add build.opensuse.org URL to OBS results
Browse files Browse the repository at this point in the history
  • Loading branch information
simoniz0r committed Mar 30, 2019
1 parent d85748f commit e668b6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zyp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ searchobs() {
echo " "$(echo "$META_DESC" | cut -c-100)"..."
fi
fi
echo " https://build.opensuse.org/project/show/$(echo "$result" | cut -f3 -d'|')"
echo
done > "$HOME"/.cache/zyp/zypresults.txt
cat "$HOME"/.cache/zyp/zypresults.txt
Expand Down Expand Up @@ -105,7 +106,8 @@ infoobs() {
echo "Repository $(tput setaf $COLOR_INFO):$(tput sgr0) $(echo "$RESULT" | cut -f4 -d'|')"
echo "Name $(tput setaf $COLOR_INFO):$(tput sgr0) $(echo "$RESULT" | cut -f1 -d'|')"
echo "Version $(tput setaf $COLOR_INFO):$(tput sgr0) $(echo "$RESULT" | cut -f2 -d'|')-$(xmlstarlet sel -t -v "/fileinfo/release" "$HOME"/.cache/zyp/fileinfo.xml)"
echo "Vendor $(tput setaf $COLOR_INFO):$(tput sgr0) obs://build.opensuse.org/$(echo "$RESULT" | cut -f3 -d'|')"
echo "Vendor $(tput setaf $COLOR_INFO):$(tput sgr0) obs://$(echo "$RESULT" | cut -f3 -d'|')"
echo "Project URL $(tput setaf $COLOR_INFO):$(tput sgr0) https://build.opensuse.org/$(echo "$RESULT" | cut -f3 -d'|')"
echo "Package Size $(tput setaf $COLOR_INFO):$(tput sgr0) $(awk "BEGIN {print $(xmlstarlet sel -t -v "/fileinfo/size" "$HOME"/.cache/zyp/fileinfo.xml)/1024/1024}" | cut -c-5) MiB"
echo "Installed $(tput setaf $COLOR_INFO):$(tput sgr0) No"
echo "Status $(tput setaf $COLOR_INFO):$(tput sgr0) not installed"
Expand Down

0 comments on commit e668b6c

Please sign in to comment.