[Checkins] SVN: grokproject/trunk/ If we create a
~/.buildout/default.cfg the download-directory
Tim TerlegÃÂ¥rd
tim.terlegard at valentinewebsystems.se
Sat May 3 06:36:38 EDT 2008
Log message for revision 86173:
If we create a ~/.buildout/default.cfg the download-directory
option is added with value ~/.buidout/downloads
Changed:
U grokproject/trunk/CHANGES.txt
U grokproject/trunk/grokproject/utils.py
-=-
Modified: grokproject/trunk/CHANGES.txt
===================================================================
--- grokproject/trunk/CHANGES.txt 2008-05-03 10:35:29 UTC (rev 86172)
+++ grokproject/trunk/CHANGES.txt 2008-05-03 10:36:37 UTC (rev 86173)
@@ -4,6 +4,9 @@
0.8 (unreleased)
------------------
+* If we create a ~/.buildout/default.cfg the download-directory
+ option is added with value ~/.buidout/downloads.
+
* If the user has a ~/.buildout/default.cfg nothing is added to the
created buildout.cfg. If there is no default.cfg one is created
with a line specifying the eggs-directory to ~/.buildout/eggs. If
Modified: grokproject/trunk/grokproject/utils.py
===================================================================
--- grokproject/trunk/grokproject/utils.py 2008-05-03 10:35:29 UTC (rev 86172)
+++ grokproject/trunk/grokproject/utils.py 2008-05-03 10:36:37 UTC (rev 86173)
@@ -34,6 +34,9 @@
eggs_dir = os.path.join(default_dir, 'eggs')
if not os.path.isdir(eggs_dir):
os.mkdir(eggs_dir)
+ downloads_dir = os.path.join(default_dir, 'downloads')
+ if not os.path.isdir(downloads_dir):
+ os.mkdir(downloads_dir)
default_cfg = os.path.join(HOME, '.buildout', 'default.cfg')
if not os.path.isfile(default_cfg):
config_file = open(default_cfg, 'w')
@@ -43,7 +46,7 @@
#index = http://download.zope.org/ppix
eggs-directory = %s
download-directory = %s
-""" % (eggs_dir, eggs_dir)
+""" % (eggs_dir, downloads_dir)
config_file.write(contents)
config_file.close()
More information about the Checkins
mailing list