From 48b98b8561ff0bbb3cec243e7e8d1cd912b1ca6f Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Wed, 24 Jul 2013 08:47:23 +0300 Subject: [PATCH] tools: fix the path of new rpms in the patch Put new and changed packages into the same subdir so that the updateinfo meta data points to correct paths for new rpms. Change-Id: If8b956d25a281febb8afcfd74a069c1975ff96aa Signed-off-by: Markus Lehtonen --- tools/updateinfo/updateutils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/updateinfo/updateutils.py b/tools/updateinfo/updateutils.py index fa8408e..f958583 100755 --- a/tools/updateinfo/updateutils.py +++ b/tools/updateinfo/updateutils.py @@ -65,11 +65,10 @@ def create_delta_repo(baseline_dir, target_dir, pkg_cache_dir, tmp_dir, credenti old_pkgs_dir = os.path.join(tmp_dir, 'old') repo_dir = os.path.join(tmp_dir, 'repo') - new_pkgs_dir = os.path.join(repo_dir, 'new') changed_pkgs_dir = os.path.join(repo_dir, 'rpms') os.makedirs(old_pkgs_dir) - os.makedirs(new_pkgs_dir) os.makedirs(changed_pkgs_dir) + new_pkgs_dir = changed_pkgs_dir with open(os.path.join(baseline_dir, "repourl"), "r") as repourlfile: old_repourl = repourlfile.read().strip() -- 2.7.4