Skip to content

Commit

Permalink
Fixes issue version info extraction.
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikDeak committed Jan 6, 2021
1 parent 2f40d80 commit 41dddc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Scripts/Detail/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ def updateProductVersion( self ):

versionParts = re.findall( r'set \(SYNERGY_VERSION_\w+ "?(\w+)"?\)', versionData )

if len( versionParts ) != 4:
printError( "Failed to extract version information." )
if len( versionParts ) == 0:
utility.printError( "Failed to extract version information." )
raise SystemExit( 1 )

self.productVersion = ".".join( versionParts[ 0:3 ] )
self.productStage = versionParts[ 3 ]
self.productVersion = ".".join( versionParts[ 0:-1 ] )
self.productStage = versionParts[ -1 ]
self.productRevision = utility.captureCommandOutput( "git rev-parse --short=8 HEAD" )

self.productPackageName = "-".join( [ self.productName, self.productVersion, self.productStage, self.platformVersion ] ).lower()
Expand Down
2 changes: 1 addition & 1 deletion Synergy-Core

0 comments on commit 41dddc9

Please sign in to comment.