janhoy commented on a change in pull request #497:
URL: https://github.com/apache/solr/pull/497#discussion_r784721784



##########
File path: dev-tools/scripts/buildAndPushRelease.py
##########
@@ -182,48 +202,40 @@ def normalizeVersion(tup):
     tup = tup + ('0',)
   return '.'.join(tup) + suffix
 
-def pushLocal(version, root, rev, rcNum, localDir):
+
+def pushLocal(version, root, rcNum, localDir):
   print('Push local [%s]...' % localDir)
   os.makedirs(localDir)
 
-  dir = 'lucene-solr-%s-RC%d-rev%s' % (version, rcNum, rev)
-  os.makedirs('%s/%s/lucene' % (localDir, dir))
-  os.makedirs('%s/%s/solr' % (localDir, dir))
-  print('  Lucene')
-  lucene_dist_dir = '%s/lucene/packaging/build/distributions' % root
-  os.chdir(lucene_dist_dir)
-  print('    zip...')
-  if os.path.exists('lucene.tar.bz2'):
-    os.remove('lucene.tar.bz2')
-  run('tar cjf lucene.tar.bz2 *')
-
-  os.chdir('%s/%s/lucene' % (localDir, dir))
-  print('    unzip...')
-  run('tar xjf "%s/lucene.tar.bz2"' % lucene_dist_dir)
-  os.remove('%s/lucene.tar.bz2' % lucene_dist_dir)
+  rev = open('%s/solr/distribution/build/release/.gitrev' % root, 
encoding='UTF-8').read()
 
+  dir = 'solr-%s-RC%d-rev-%s' % (version, rcNum, rev)

Review comment:
       Yes, Lucene did that change, and it is a tad better. It's just a folder 
name really.




-- 
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to