diff options
author | Per Øyvind Karlsen <proyvind@moondrake.org> | 2016-06-30 01:04:25 +0200 |
---|---|---|
committer | Per Øyvind Karlsen <proyvind@moondrake.org> | 2016-06-30 01:04:25 +0200 |
commit | 01df5cd564c3d70d2c5e8bd3f1a0ce5b747b42bb (patch) | |
tree | 8b453c2a525d792de32181853d6ce92c576b71ee /MgaRepo | |
parent | 8f455357509c915198a9af225ea88d1f0fc68a52 (diff) | |
download | mgarepo-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.py | 4 |
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): |