shared-repo-unpack: Allow shared to be unspecified

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2018-01-29 17:52:27 +00:00
parent aad15671f7
commit f91610defd

View File

@ -51,7 +51,7 @@ for repo in sorted(repos.keys()):
if repo not in needrepos:
continue
targetrepodir = "%s/%s" % (targetsubdir, repo)
if shared:
if shared != "None":
utils.printheader("Copying in repo %s" % repo)
utils.mkdir(targetrepodir)
subprocess.check_call(["rsync", "-a", "%s/%s" % (shared, repo), targetsubdir])