diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-21 23:17:16 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-22 10:39:10 +0000 |
commit | 902b77bf91d96517b935bce00a11003604dc3d54 (patch) | |
tree | ae6155b48ba64d4a0f5acae99130963648d980c7 /meta/lib/oe/package_manager.py | |
parent | 3ef5e034c654996c6f8fb90f116bb91877c2758a (diff) | |
download | poky-902b77bf91d96517b935bce00a11003604dc3d54.tar.gz |
lib/oe/package_manager/sdk: Ensure do_populate_sdk_ext and do_populate_sdk repos don't conflict
The repository indexes updated during do_populate_sdk_ext and do_populate_sdk
can conflcit. Add the missing lockfile calls for deb/ipk and in the rpm case,
ensure different directories are used for the index for the two sdk cases.
(From OE-Core rev: 5e5569c962c9ebc898eeb5044214e95117b190e1)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/package_manager.py')
-rw-r--r-- | meta/lib/oe/package_manager.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 0f85f3fb7c..2a07f0e39a 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -461,7 +461,8 @@ class RpmPM(PackageManager): | |||
461 | target_vendor, | 461 | target_vendor, |
462 | task_name='target', | 462 | task_name='target', |
463 | arch_var=None, | 463 | arch_var=None, |
464 | os_var=None): | 464 | os_var=None, |
465 | rpm_repo_workdir="oe-rootfs-repo"): | ||
465 | super(RpmPM, self).__init__(d) | 466 | super(RpmPM, self).__init__(d) |
466 | self.target_rootfs = target_rootfs | 467 | self.target_rootfs = target_rootfs |
467 | self.target_vendor = target_vendor | 468 | self.target_vendor = target_vendor |
@@ -475,7 +476,7 @@ class RpmPM(PackageManager): | |||
475 | else: | 476 | else: |
476 | self.primary_arch = self.d.getVar('MACHINE_ARCH') | 477 | self.primary_arch = self.d.getVar('MACHINE_ARCH') |
477 | 478 | ||
478 | self.rpm_repo_dir = oe.path.join(self.d.getVar('WORKDIR'), "oe-rootfs-repo") | 479 | self.rpm_repo_dir = oe.path.join(self.d.getVar('WORKDIR'), rpm_repo_workdir) |
479 | bb.utils.mkdirhier(self.rpm_repo_dir) | 480 | bb.utils.mkdirhier(self.rpm_repo_dir) |
480 | oe.path.symlink(self.d.getVar('DEPLOY_DIR_RPM'), oe.path.join(self.rpm_repo_dir, "rpm"), True) | 481 | oe.path.symlink(self.d.getVar('DEPLOY_DIR_RPM'), oe.path.join(self.rpm_repo_dir, "rpm"), True) |
481 | 482 | ||