aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/rpmutil.py
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-11-08 17:21:09 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-11-08 17:21:09 +0000
commitc8428377393fab3b0549229cdcc349f34500bc15 (patch)
treee0a4d759dcba618e70ce3756972e92fb76befb2b /RepSys/rpmutil.py
parent5fde037cacbb4a6608c6edd58a1d331452d56f0c (diff)
downloadmgarepo-c8428377393fab3b0549229cdcc349f34500bc15.tar
mgarepo-c8428377393fab3b0549229cdcc349f34500bc15.tar.gz
mgarepo-c8428377393fab3b0549229cdcc349f34500bc15.tar.bz2
mgarepo-c8428377393fab3b0549229cdcc349f34500bc15.tar.xz
mgarepo-c8428377393fab3b0549229cdcc349f34500bc15.zip
Added option -o to 'co' to disable the use of mirror when checking out
Diffstat (limited to 'RepSys/rpmutil.py')
-rw-r--r--RepSys/rpmutil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/RepSys/rpmutil.py b/RepSys/rpmutil.py
index 559b64c..865e2dd 100644
--- a/RepSys/rpmutil.py
+++ b/RepSys/rpmutil.py
@@ -361,7 +361,7 @@ def check_changed(pkgdirurl, all=0, show=0, verbose=0):
"nocurrent": nocurrent,
"nopristine": nopristine}
-def checkout(pkgdirurl, path=None, revision=None):
+def checkout(pkgdirurl, path=None, revision=None, use_mirror=True):
o_pkgdirurl = pkgdirurl
pkgdirurl = default_parent(o_pkgdirurl)
current = os.path.join(pkgdirurl, "current")
@@ -369,7 +369,7 @@ def checkout(pkgdirurl, path=None, revision=None):
_, path = os.path.split(pkgdirurl)
# if default_parent changed the URL, we can use mirrors because the
# user did not provided complete package URL
- if (o_pkgdirurl != pkgdirurl) and mirror.enabled():
+ if (o_pkgdirurl != pkgdirurl) and use_mirror and mirror.enabled():
current = mirror.checkout_url(current)
print "checking out from mirror", current
svn = SVN(baseurl=pkgdirurl)