Ori.livneh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/274782

Change subject: Update VERSION file automatically when updating pygmentize 
bundle
......................................................................

Update VERSION file automatically when updating pygmentize bundle

Make the create_pygmentize_bundle script automatically update VERSION.

Change-Id: I48654aa71d9ccc08f866415c1a81b3e80cc95be2
---
M pygments/create_pygmentize_bundle
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SyntaxHighlight_GeSHi 
refs/changes/82/274782/1

diff --git a/pygments/create_pygmentize_bundle 
b/pygments/create_pygmentize_bundle
index 9f638b9..3cad812 100755
--- a/pygments/create_pygmentize_bundle
+++ b/pygments/create_pygmentize_bundle
@@ -43,7 +43,7 @@
     else:
         raise RuntimeError('No suitable package found.')
 
-print('Retreiving version %s (%s)...' % (latest_version, url))
+print('Retrieving version %s (%s)...' % (latest_version, url))
 req = urllib2.urlopen(url)
 buf = io.BytesIO(req.read())
 
@@ -65,4 +65,7 @@
 file_st = os.stat(file_path)
 os.chmod(file_path, file_st.st_mode | stat.S_IEXEC)
 
+with open(os.path.join(script_dir, 'VERSION'), 'w') as f:
+    f.write(latest_version + '\n')
+
 print('Done. Wrote %s bytes to %s' % (len(data), file_path))

-- 
To view, visit https://gerrit.wikimedia.org/r/274782
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I48654aa71d9ccc08f866415c1a81b3e80cc95be2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SyntaxHighlight_GeSHi
Gerrit-Branch: master
Gerrit-Owner: Ori.livneh <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to