Explorar o código

Merge pull request #20375 from tiborvass/fix-yum-index-output

Fix index generator for apt/yum packages
Sebastiaan van Stijn %!s(int64=9) %!d(string=hai) anos
pai
achega
6b70964fea
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      hack/make/generate-index-listing

+ 1 - 1
hack/make/generate-index-listing

@@ -41,7 +41,7 @@ create_index() {
 	IFS=$'\n';
 	IFS=$'\n';
 
 
 	# pretty sweet, will mimick the normal apache output
 	# pretty sweet, will mimick the normal apache output
-	for L in $(find -L . -mount -depth -maxdepth 1 -type f ! -name 'index' -printf "<a href=\"%f\">%-44f@_@%Td-%Tb-%TY %Tk:%TM  @%f@\n"|sort|sed 's,\([\ ]\+\)@_@,</a>\1,g');
+	for L in $(find -L . -mount -depth -maxdepth 1 -type f ! -name 'index' -printf "<a href=\"%f\">%f|@_@%Td-%Tb-%TY %Tk:%TM  @%f@\n"|sort|column -t -s '|' | sed 's,\([\ ]\+\)@_@,</a>\1,g');
 	do
 	do
 		# file
 		# file
 		F=$(sed -e 's,^.*@\([^@]\+\)@.*$,\1,g'<<<"$L");
 		F=$(sed -e 's,^.*@\([^@]\+\)@.*$,\1,g'<<<"$L");