aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2009-02-17 14:17:42 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2009-02-17 14:17:42 +0000
commit10dc432cf501e752b7687b57ad784af3d015b235 (patch)
treecf38bdb3a770e76f79f9658ef3a2bb6944cf0600
parent4888f95c70fca02e0c5b3dd09a2c940fd543c1ac (diff)
downloadmgarepo-10dc432cf501e752b7687b57ad784af3d015b235.tar
mgarepo-10dc432cf501e752b7687b57ad784af3d015b235.tar.gz
mgarepo-10dc432cf501e752b7687b57ad784af3d015b235.tar.bz2
mgarepo-10dc432cf501e752b7687b57ad784af3d015b235.tar.xz
mgarepo-10dc432cf501e752b7687b57ad784af3d015b235.zip
Make the -M option (disable mirror) work again
It was not reading the value of the configuration option properly.
-rw-r--r--CHANGES3
-rw-r--r--RepSys/layout.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 87fc369..29c2fd7 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+* Development
+- make the -M option work again
+
* 1.7
- dropped all authenticated access support: subversion authentication has
been broken for a long time and the workarounds weren't decent. It will
diff --git a/RepSys/layout.py b/RepSys/layout.py
index a4a3846..a358c28 100644
--- a/RepSys/layout.py
+++ b/RepSys/layout.py
@@ -117,7 +117,7 @@ def remove_current(pkgdirurl):
def repository_url(mirrored=False):
url = None
- if mirrored and config.get("global", "use-mirror"):
+ if mirrored and config.getbool("global", "use-mirror"):
url = config.get("global", "mirror")
if url is None:
url = config.get("global", "repository")