aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/__init__.py
blob: b0df184f5890e06022533c27c0a54e4d4f3d2b1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/python
import re
import os
import tempfile

import ConfigParser

config = ConfigParser.Config()
tempfile.tempdir = config.get("global", "tempdir", None) or None # when ""
del ConfigParser

def disable_mirror(*a, **kw):
    config.set("global", "use-mirror", "no")

class Error(Exception): pass

class SilentError(Error): pass

# vim:et:ts=4:sw=4