From 3e3e90e699192df60eeafb2ec7a9e087aff97195 Mon Sep 17 00:00:00 2001 From: Olav Vitters Date: Thu, 8 Oct 2015 21:41:42 +0200 Subject: Make mgarepo ci -s work When only fetching the spec file, mgarepo still tried to retrieve the binaries. This resulted in an error message. Really only download the spec file. --- MgaRepo/rpmutil.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'MgaRepo/rpmutil.py') diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py index 325c0ce..53fb3b2 100644 --- a/MgaRepo/rpmutil.py +++ b/MgaRepo/rpmutil.py @@ -474,7 +474,8 @@ def checkout(pkgdirurl, path=None, revision=None, branch=None, distro=None, mirror.info(current, write=True) svn = SVN() svn.checkout(current, path, rev=revision, show=1) - binrepo.download_binaries(path) + if not spec: + binrepo.download_binaries(path) def getpkgtopdir(basedir=None): #FIXME this implementation doesn't work well with relative path names, -- cgit v1.2.1