ntheanh201 commented on code in PR #7958:
URL: https://github.com/apache/trafficcontrol/pull/7958#discussion_r1637320019


##########
traffic_server/_tsb/trafficserver.spec:
##########
@@ -20,9 +20,9 @@
 
 %global src %{_topdir}/SOURCES/src
 %global git_args --git-dir="%{src}/.git" --work-tree="%{src}"
-%global tag %(git %{git_args} describe --long --tags 
--match='*[0-9.][0-9.][0-9.]' |      sed 
's/^\\\(.*\\\)-\\\([0-9]\\\+\\\)-g\\\([0-9a-f]\\\+\\\)$/\\\1/' | sed 's/-/_/')
-%global distance %(git %{git_args} describe --long --tags 
--match='*[0-9.][0-9.][0-9.]' | sed 
's/^\\\(.*\\\)-\\\([0-9]\\\+\\\)-g\\\([0-9a-f]\\\+\\\)$/\\\2/')
-%global commit %(git %{git_args} describe --long --tags 
--match='*[0-9.][0-9.][0-9.]' |   sed 
's/^\\\(.*\\\)-\\\([0-9]\\\+\\\)-g\\\([0-9a-f]\\\+\\\)$/\\\3/')
+%global tag %(git %{git_args} describe --long --tags 
--match='*[0-9.][0-9.][0-9.]' --match='*[0-9.][0-9.][0-9.]-rc[0-9]'      | sed 
's/^\\\(.*\\\)-\\\([0-9]\\\+\\\)-g\\\([0-9a-f]\\\+\\\)$/\\\1/'  | sed 's/-/_/g')
+%global distance %(git %{git_args} describe --long --tags 
--match='*[0-9.][0-9.][0-9.]' --match='*[0-9.][0-9.][0-9.]-rc[0-9]' | sed 
's/^\\\(.*\\\)-\\\([0-9]\\\+\\\)-g\\\([0-9a-f]\\\+\\\)$/\\\2/')
+%global commit %(git %{git_args} describe --long --tags 
--match='*[0-9.][0-9.][0-9.]' --match='*[0-9.][0-9.][0-9.]-rc[0-9]'   | sed 
's/^\\\(.*\\\)-\\\([0-9]\\\+\\\)-g\\\([0-9a-f]\\\+\\\)$/\\\3/')

Review Comment:
   maybe the pushed it after I reported to them on traffic-server channel ;))



##########
traffic_server/_tsb/trafficserver.spec:
##########
@@ -20,9 +20,9 @@
 
 %global src %{_topdir}/SOURCES/src
 %global git_args --git-dir="%{src}/.git" --work-tree="%{src}"
-%global tag %(git %{git_args} describe --long --tags 
--match='*[0-9.][0-9.][0-9.]' |      sed 
's/^\\\(.*\\\)-\\\([0-9]\\\+\\\)-g\\\([0-9a-f]\\\+\\\)$/\\\1/' | sed 's/-/_/')
-%global distance %(git %{git_args} describe --long --tags 
--match='*[0-9.][0-9.][0-9.]' | sed 
's/^\\\(.*\\\)-\\\([0-9]\\\+\\\)-g\\\([0-9a-f]\\\+\\\)$/\\\2/')
-%global commit %(git %{git_args} describe --long --tags 
--match='*[0-9.][0-9.][0-9.]' |   sed 
's/^\\\(.*\\\)-\\\([0-9]\\\+\\\)-g\\\([0-9a-f]\\\+\\\)$/\\\3/')
+%global tag %(git %{git_args} describe --long --tags 
--match='*[0-9.][0-9.][0-9.]' --match='*[0-9.][0-9.][0-9.]-rc[0-9]'      | sed 
's/^\\\(.*\\\)-\\\([0-9]\\\+\\\)-g\\\([0-9a-f]\\\+\\\)$/\\\1/'  | sed 's/-/_/g')
+%global distance %(git %{git_args} describe --long --tags 
--match='*[0-9.][0-9.][0-9.]' --match='*[0-9.][0-9.][0-9.]-rc[0-9]' | sed 
's/^\\\(.*\\\)-\\\([0-9]\\\+\\\)-g\\\([0-9a-f]\\\+\\\)$/\\\2/')
+%global commit %(git %{git_args} describe --long --tags 
--match='*[0-9.][0-9.][0-9.]' --match='*[0-9.][0-9.][0-9.]-rc[0-9]'   | sed 
's/^\\\(.*\\\)-\\\([0-9]\\\+\\\)-g\\\([0-9a-f]\\\+\\\)$/\\\3/')

Review Comment:
   maybe they pushed it after I reported to them on traffic-server channel ;))



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to