Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: tools/publish_pkg.py

Issue 12517013: Add SDK dependencies when pushing a package. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/publish_pkg.py
===================================================================
--- tools/publish_pkg.py (revision 20102)
+++ tools/publish_pkg.py (working copy)
@@ -96,6 +96,9 @@
pubspecFile.write(line)
if not foundVersion:
pubspecFile.write('\nversion: ' + version + '\n')
+ pubspecFile.write('environment:\n')
+ pubspecFile.write(' sdk: ">=' + version + '"\n')
+
else:
#
# If there's a lib/ directory in the package, copy the package.
@@ -120,6 +123,8 @@
pubspecFile.write(' ' + argv[1] + ' . This package will change in\n')
pubspecFile.write(' unpredictable/incompatible ways without warning.\n')
pubspecFile.write('dependencies:\n')
+ pubspecFile.write('environment:\n')
+ pubspecFile.write(' sdk: ">=' + version + '"\n')
libpath = os.path.join(HOME, argv[1], '../libraries.dart')
if os.path.exists(libpath):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698