diff options
Diffstat (limited to 'MgaRepo/__init__.py')
-rw-r--r-- | MgaRepo/__init__.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/MgaRepo/__init__.py b/MgaRepo/__init__.py new file mode 100644 index 0000000..b0df184 --- /dev/null +++ b/MgaRepo/__init__.py @@ -0,0 +1,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 |