From 846c9e0ef180aa5411803eb1906896dc5e2fc5b9 Mon Sep 17 00:00:00 2001 From: Mageia SVN-Git Migration Date: Tue, 4 Jan 2011 16:09:44 +0000 Subject: Synthesized commit during git-svn import combining previous Mandriva history with Magiea. This commit consitsts of the following subversion commits: ------------------------------------------------------------------------ r202 | boklm | 2011-01-04 16:09:44 +0000 (Tue, 04 Jan 2011) | 1 line add repsys ------------------------------------------------------------------------ --- RepSys/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) mode change 100644 => 100755 RepSys/__init__.py (limited to 'RepSys/__init__.py') diff --git a/RepSys/__init__.py b/RepSys/__init__.py old mode 100644 new mode 100755 index 2759e8f..b0df184 --- a/RepSys/__init__.py +++ b/RepSys/__init__.py @@ -9,6 +9,11 @@ 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 -- cgit v1.2.1