aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2006-12-04 15:27:17 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2006-12-04 15:27:17 +0000
commit3362fd42e4cc57d2f4241252ca6b3ef1b1e98596 (patch)
treec5c7f3e6eac5267a1eddb56eb9770dac2938577a
parentd2588e5434995b5502bfff3cc34e9f78e43d859f (diff)
downloadmgarepo-3362fd42e4cc57d2f4241252ca6b3ef1b1e98596.tar
mgarepo-3362fd42e4cc57d2f4241252ca6b3ef1b1e98596.tar.gz
mgarepo-3362fd42e4cc57d2f4241252ca6b3ef1b1e98596.tar.bz2
mgarepo-3362fd42e4cc57d2f4241252ca6b3ef1b1e98596.tar.xz
mgarepo-3362fd42e4cc57d2f4241252ca6b3ef1b1e98596.zip
Added option "tempdir" to the [submit] section.
-rw-r--r--RepSys/__init__.py2
-rw-r--r--repsys.conf3
2 files changed, 5 insertions, 0 deletions
diff --git a/RepSys/__init__.py b/RepSys/__init__.py
index c394746..94697d1 100644
--- a/RepSys/__init__.py
+++ b/RepSys/__init__.py
@@ -1,10 +1,12 @@
#!/usr/bin/python
import re
import os
+import tempfile
import ConfigParser
config = ConfigParser.Config()
+tempfile.tempdir = config.get("submit", "tempdir", None) or None # when ""
del ConfigParser
class Error(Exception): pass
diff --git a/repsys.conf b/repsys.conf
index 783a2e0..72b10c3 100644
--- a/repsys.conf
+++ b/repsys.conf
@@ -27,6 +27,9 @@ 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