[Zope-Checkins] SVN: Zope/trunk/inst/generate_externals.py fetching
current externals automatically
Andreas Jung
andreas at andreas-jung.com
Mon Dec 24 00:24:07 EST 2007
Log message for revision 82418:
fetching current externals automatically
Changed:
U Zope/trunk/inst/generate_externals.py
-=-
Modified: Zope/trunk/inst/generate_externals.py
===================================================================
--- Zope/trunk/inst/generate_externals.py 2007-12-24 04:39:41 UTC (rev 82417)
+++ Zope/trunk/inst/generate_externals.py 2007-12-24 05:24:06 UTC (rev 82418)
@@ -16,19 +16,18 @@
Written by Andreas Jung, 2007
"""
-# Requires some local files that contain the current
-# list of externals on a per-directory basis:
-#
-# svn propget svn:externals lib/python/ >inst/lib_python.txt
-# svn propget svn:externals lib/python/zope >inst/lib_python_zope.txt
-# svn propget svn:externals lib/python/zope/app >inst/lib_python_zope_app.txt
-
import sys
+import os
import urllib2
from ConfigParser import ConfigParser, NoOptionError
error = sys.stderr
+# retrieve externals used in Zope 2
+os.system('svn propget svn:externals lib/python >lib_python.txt')
+os.system('svn propget svn:externals lib/python/zope >lib_python_zope.txt')
+os.system('svn propget svn:externals lib/python/zope/app >lib_python_zope_app.txt')
+
# download current KGS index
kgs_url = 'http://download.zope.org/zope3.4/versions.cfg'
open('kgs.ini', 'w').write(urllib2.urlopen(kgs_url).read())
More information about the Zope-Checkins
mailing list