aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <proyvind@moondrake.org>2016-06-30 01:04:25 +0200
committerPer Øyvind Karlsen <proyvind@moondrake.org>2016-06-30 01:04:25 +0200
commit01df5cd564c3d70d2c5e8bd3f1a0ce5b747b42bb (patch)
tree8b453c2a525d792de32181853d6ce92c576b71ee /MgaRepo
parent8f455357509c915198a9af225ea88d1f0fc68a52 (diff)
downloadmgarepo-01df5cd564c3d70d2c5e8bd3f1a0ce5b747b42bb.tar
mgarepo-01df5cd564c3d70d2c5e8bd3f1a0ce5b747b42bb.tar.gz
mgarepo-01df5cd564c3d70d2c5e8bd3f1a0ce5b747b42bb.tar.bz2
mgarepo-01df5cd564c3d70d2c5e8bd3f1a0ce5b747b42bb.tar.xz
mgarepo-01df5cd564c3d70d2c5e8bd3f1a0ce5b747b42bb.zip
add bindownload=True arg to clone for only disabling binrepo download
Diffstat (limited to 'MgaRepo')
-rw-r--r--MgaRepo/rpmutil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py
index f3d1c5f..2b78d68 100644
--- a/MgaRepo/rpmutil.py
+++ b/MgaRepo/rpmutil.py
@@ -614,7 +614,7 @@ def checkout(pkgdirurl, path=None, revision=None, branch=None, distro=None, back
binrepo.download_binaries(path)
def clone(pkgdirurl, path=None, revision=None, branch=None, distro=None, backports=None,
- spec=False, fullnames = True):
+ spec=False, fullnames = True, bindownload = True):
o_pkgdirurl = pkgdirurl
pkgdirurl = layout.package_url(o_pkgdirurl, distro=distro, backports=backports)
append = None
@@ -627,7 +627,7 @@ def clone(pkgdirurl, path=None, revision=None, branch=None, distro=None, backpor
mirror.info(current, write=True)
git = GIT()
git.clone(current, path, fullnames=fullnames, show=1)
- if not spec:
+ if not spec and bindownload:
binrepo.download_binaries(path)
def getpkgtopdir(basedir=os.path.curdir):