From: Markus Lehtonen Date: Wed, 24 Jul 2013 05:47:23 +0000 (+0300) Subject: tools: fix the path of new rpms in the patch X-Git-Tag: accepted/tizen/20130726.201327~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=48b98b8561ff0bbb3cec243e7e8d1cd912b1ca6f;p=platform%2Fupstream%2Fswup.git 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 --- 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()