From b5cfeaa6cab129b13617e6df3c52e04336db4765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Tue, 7 Feb 2017 15:50:33 +0100 Subject: [PATCH] metadata: Fix .treeinfo paths for addons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently .treeinfo sections for addons are missing paths to packages and repository. Signed-off-by: Lubomír Sedlář --- pungi/metadata.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pungi/metadata.py b/pungi/metadata.py index b4681828..57cd05d5 100644 --- a/pungi/metadata.py +++ b/pungi/metadata.py @@ -256,11 +256,11 @@ def write_tree_info(compose, arch, variant, timestamp=None): addon.type = i.type os_tree = compose.paths.compose.os_tree(arch=arch, variant=i).rstrip("/") + "/" - addon.packages = relative_path(compose.paths.compose.packages(arch=arch, variant=i, create_dir=False).rstrip("/") + "/", os_tree).rstrip("/") or "." - addon.repository = relative_path(compose.paths.compose.repository(arch=arch, variant=i, create_dir=False).rstrip("/") + "/", os_tree).rstrip("/") or "." + addon.paths.packages = relative_path(compose.paths.compose.packages(arch=arch, variant=i, create_dir=False).rstrip("/") + "/", os_tree).rstrip("/") or "." + addon.paths.repository = relative_path(compose.paths.compose.repository(arch=arch, variant=i, create_dir=False).rstrip("/") + "/", os_tree).rstrip("/") or "." var.add(addon) - repomd_path = os.path.join(addon.repository, "repodata", "repomd.xml") + repomd_path = os.path.join(addon.paths.repository, "repodata", "repomd.xml") if os.path.isfile(repomd_path): ti.checksums.add(repomd_path, "sha256", root_dir=os_tree)