aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo/__init__.py
blob: 1758b8306ea03ed943be43473b900b7d8f4e34bc (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

from . 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