qubes.Template*: Change separator from : to | and include additional metadata.

This commit is contained in:
WillyPillow 2020-07-29 19:35:37 +08:00
parent e91f2eb6f4
commit 686d0d3c12

View File

@ -28,7 +28,7 @@ OPTS+=("--quiet")
RET=0 RET=0
if [ "$1" = "query" ]; then if [ "$1" = "query" ]; then
dnf repoquery "${OPTS[@]}" --qf='%{name}:%{epoch}:%{version}:%{release}:%{reponame}:%{downloadsize}:%{summary}' "$SPEC" dnf repoquery "${OPTS[@]}" --qf='%{name}|%{epoch}|%{version}|%{release}|%{reponame}|%{downloadsize}|%{buildtime}|%{license}|%{url}|%{summary}|%{description}|' "$SPEC"
RET="$?" RET="$?"
elif [ "$1" = "download" ]; then elif [ "$1" = "download" ]; then
curl -L "$(dnf download "${OPTS[@]}" --url "$SPEC" | shuf -n 1)" -o - curl -L "$(dnf download "${OPTS[@]}" --url "$SPEC" | shuf -n 1)" -o -