tools: fix create_updateinfo()
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 12 Apr 2013 13:43:01 +0000 (16:43 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 12 Apr 2013 13:43:01 +0000 (16:43 +0300)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
tools/updateinfo/updateutils.py

index f8ea6fe..1c56e24 100755 (executable)
@@ -462,7 +462,8 @@ def create_updateinfo(base_dir, patch):
     patch_id = patch['ID']
 
     repo_dir = os.path.join(base_dir, 'repo')
-    packages = glob.glob("repo_dir/rpms/*.rpm") + glob.glob("repo_dir/new/*.rpm")
+    packages = (glob.glob("%s/rpms/*.rpm" % repo_dir) +
+                glob.glob("%s/new/*.rpm" % repo_dir))
     for package in packages:
         u = {}
         u['binary'] = package