aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo/__init__.py
blob: 3c39f55dc1c9d83c0b17e441d3d584fa60bb6f43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/python3
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