aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2006-12-04 19:58:45 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2006-12-04 19:58:45 +0000
commit441cccabe7fd255810aabc77fdd636fb3905906b (patch)
tree130502fc2d6d123e9830eb2f177fd5bc6dcf1b5d
parent3362fd42e4cc57d2f4241252ca6b3ef1b1e98596 (diff)
downloadmgarepo-441cccabe7fd255810aabc77fdd636fb3905906b.tar
mgarepo-441cccabe7fd255810aabc77fdd636fb3905906b.tar.gz
mgarepo-441cccabe7fd255810aabc77fdd636fb3905906b.tar.bz2
mgarepo-441cccabe7fd255810aabc77fdd636fb3905906b.tar.xz
mgarepo-441cccabe7fd255810aabc77fdd636fb3905906b.zip
Moved the option "tempdir" from [submit] to [global], since it changes the
behavior of all subcommands.
-rw-r--r--RepSys/__init__.py2
-rw-r--r--repsys.conf4
2 files changed, 2 insertions, 4 deletions
diff --git a/RepSys/__init__.py b/RepSys/__init__.py
index 94697d1..b303065 100644
--- a/RepSys/__init__.py
+++ b/RepSys/__init__.py
@@ -6,7 +6,7 @@ import tempfile
import ConfigParser
config = ConfigParser.Config()
-tempfile.tempdir = config.get("submit", "tempdir", None) or None # when ""
+tempfile.tempdir = config.get("global", "tempdir", None) or None # when ""
del ConfigParser
class Error(Exception): pass
diff --git a/repsys.conf b/repsys.conf
index 72b10c3..cec6fa6 100644
--- a/repsys.conf
+++ b/repsys.conf
@@ -2,6 +2,7 @@
verbose = no
default_parent = svn+ssh://svn.mandriva.com/svn/packages/cooker
url-map = svn\+ssh://svn\.mandriva\.com/(.*) file:///\1
+#tempdir = /tmp
[log]
oldurl = svn+ssh://svn.mandriva.com/svn/packages/misc
@@ -27,9 +28,6 @@ helio = Helio Chissini de Castro <helio@mandriva.com>
lmontel = Laurent Montel <lmontel@mandriva.com>
oden = Oden Eriksson <oeriksson@mandriva.com>
-[submit]
-tempdir =
-
[submit Cooker]
target = /export/home/repsys
allowed = svn+ssh://svn.mandriva.com/svn/packages/cooker