Added snapshot_dir to get_repo_data's return value
authorEd Bartosh <eduard.bartosh@intel.com>
Mon, 30 Sep 2013 10:40:25 +0000 (13:40 +0300)
committerGerrit Code Review <gerrit2@otctools.jf.intel.com>
Wed, 9 Oct 2013 17:50:07 +0000 (10:50 -0700)
This field will be used by snapshot creation functionality. As
get_repo_data used in 2 places: snapshot creation and prerelease, it
should return all values used in both workflows.

Change-Id: I967ce538b5a7811bd3acf356c8249bd73bc5587a
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
common/repoutils.py

index 7cba593..f71f371 100644 (file)
@@ -65,6 +65,7 @@ def get_repo_data(backenddb, base_url, base_path='/srv/download',
                                       ARCH_MAP.get(arch, arch), 'packages')
 
     return {'snapshot': latest_snapshot,
+            'snapshot_dir': snapshot_dir,
             'snapshot_path': os.path.join(base_path, snapshot_dir),
             'snapshot_url': os.path.join(base_url, snapshot_dir),
             'prerelease_dir': prerelease_dir,