aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/rpmutil.py
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-11-08 17:18:34 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-11-08 17:18:34 +0000
commitcc444f69b7afc33401ff8eaa2f6c8b14a4e9b46e (patch)
treec5ff1a8b7659d3e123e9e28072e6fe0bfbfee7ed /RepSys/rpmutil.py
parenta8730b6515005139310f4a54c6d51366a1d6fd5f (diff)
downloadmgarepo-cc444f69b7afc33401ff8eaa2f6c8b14a4e9b46e.tar
mgarepo-cc444f69b7afc33401ff8eaa2f6c8b14a4e9b46e.tar.gz
mgarepo-cc444f69b7afc33401ff8eaa2f6c8b14a4e9b46e.tar.bz2
mgarepo-cc444f69b7afc33401ff8eaa2f6c8b14a4e9b46e.tar.xz
mgarepo-cc444f69b7afc33401ff8eaa2f6c8b14a4e9b46e.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 70550e4..86fb890 100644
--- a/RepSys/rpmutil.py
+++ b/RepSys/rpmutil.py
@@ -356,7 +356,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")
@@ -364,7 +364,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()