summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/package_manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oe/package_manager.py')
-rw-r--r--meta/lib/oe/package_manager.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 6c133c37c9..ee42952046 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -604,11 +604,11 @@ class RpmPM(PackageManager):
604 # self._invoke_smart('config --set rpm-log-level=debug') 604 # self._invoke_smart('config --set rpm-log-level=debug')
605 # cmd = 'config --set rpm-log-file=/tmp/smart-debug-logfile' 605 # cmd = 'config --set rpm-log-file=/tmp/smart-debug-logfile'
606 # self._invoke_smart(cmd) 606 # self._invoke_smart(cmd)
607 607 ch_already_added = []
608 for canonical_arch in platform_extra: 608 for canonical_arch in platform_extra:
609 arch = canonical_arch.split('-')[0] 609 arch = canonical_arch.split('-')[0]
610 arch_channel = os.path.join(self.deploy_dir, arch) 610 arch_channel = os.path.join(self.deploy_dir, arch)
611 if os.path.exists(arch_channel): 611 if os.path.exists(arch_channel) and not arch in ch_already_added:
612 bb.note('Note: adding Smart channel %s (%s)' % 612 bb.note('Note: adding Smart channel %s (%s)' %
613 (arch, channel_priority)) 613 (arch, channel_priority))
614 self._invoke_smart('channel --add %s type=rpm-md baseurl=%s -y' 614 self._invoke_smart('channel --add %s type=rpm-md baseurl=%s -y'
@@ -617,6 +617,8 @@ class RpmPM(PackageManager):
617 (arch, channel_priority)) 617 (arch, channel_priority))
618 channel_priority -= 5 618 channel_priority -= 5
619 619
620 ch_already_added.append(arch)
621
620 bb.note('adding Smart RPM DB channel') 622 bb.note('adding Smart RPM DB channel')
621 self._invoke_smart('channel --add rpmsys type=rpm-sys -y') 623 self._invoke_smart('channel --add rpmsys type=rpm-sys -y')
622 624