From 01df5cd564c3d70d2c5e8bd3f1a0ce5b747b42bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=98yvind=20Karlsen?= Date: Thu, 30 Jun 2016 01:04:25 +0200 Subject: add bindownload=True arg to clone for only disabling binrepo download --- MgaRepo/rpmutil.py | 4 ++-- 1 file 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): -- cgit v1.2.1