tools: fix the path of new rpms in the patch 10/6010/1
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 24 Jul 2013 05:47:23 +0000 (08:47 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 24 Jul 2013 10:32:42 +0000 (13:32 +0300)
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 <markus.lehtonen@linux.intel.com>
tools/updateinfo/updateutils.py

index fa8408e..f958583 100755 (executable)
@@ -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()