promote: More crips column formatting
authorChristoph Berg <myon@debian.org>
Thu, 8 Aug 2024 13:32:47 +0000 (15:32 +0200)
committerChristoph Berg <myon@debian.org>
Thu, 8 Aug 2024 13:32:47 +0000 (15:32 +0200)
(Does right-align version number and distro release columns for some
reason, though)

repo/promote

index 6423ea561e84e52c2732bec1589fce1efea6f400..f2f0d80eb2e430295b0f405ba3db73e01d004f66 100755 (executable)
@@ -70,7 +70,7 @@ OLDVERSION=$($REPREPRO -A source list $FIRST_DIST-pgdg "$PKG" | awk '{ print $3
 echo "Old status:"
 OLDLS=$($REPREPRO ls $PKG; for p in $OTHERBINARIES; do $REPREPRO ls $p; done)
 echo "$OLDLS"
-OLDLSPROD=$(echo "$OLDLS" | grep -v -e pgdg-testing -e pgdg-snapshot | column -t)
+OLDLSPROD=$(echo "$OLDLS" | grep -v -e pgdg-testing -e pgdg-snapshot | column -t -s '|' -o '|')
 echo
 fi
 
@@ -84,7 +84,7 @@ echo
 echo "New status:"
 NEWLS=$($REPREPRO ls $PKG; for p in $OTHERBINARIES; do $REPREPRO ls $p; done)
 echo "$NEWLS"
-NEWLSPROD=$(echo "$NEWLS" | grep -v -e pgdg-testing -e pgdg-snapshot | column -t)
+NEWLSPROD=$(echo "$NEWLS" | grep -v -e pgdg-testing -e pgdg-snapshot | column -t -s '|' -o '|')
 echo
 
 if [ -z "${DEBUG:-}" ] && [ "$OLDLSPROD" = "$NEWLSPROD" ]; then