[oe-commits] Stefan Stanacar : oeqa/runtime: smart: fix adding channels

git at git.openembedded.org git at git.openembedded.org
Sun Feb 2 11:26:02 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 14e3a8f58e309121760fec70619633281dd9d88c
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=14e3a8f58e309121760fec70619633281dd9d88c

Author: Stefan Stanacar <stefanx.stanacar at intel.com>
Date:   Wed Jan 29 14:30:57 2014 +0200

oeqa/runtime: smart: fix adding channels

Without this it won't add core2-64 and similar channels, as the
directory name in deploy_dir/rpm uses _ not - as the package arch.

Signed-off-by: Stefan Stanacar <stefanx.stanacar at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/lib/oeqa/runtime/smart.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/runtime/smart.py b/meta/lib/oeqa/runtime/smart.py
index 7ef4b0e..8299bf3 100644
--- a/meta/lib/oeqa/runtime/smart.py
+++ b/meta/lib/oeqa/runtime/smart.py
@@ -59,7 +59,7 @@ class SmartRepoTest(SmartTest):
     def test_smart_channel_add(self):
         image_pkgtype = self.tc.d.getVar('IMAGE_PKGTYPE', True)
         deploy_url = 'http://%s:%s/%s' %(self.target.server_ip, self.repo_server.port, image_pkgtype)
-        pkgarchs = self.tc.d.getVar('PACKAGE_ARCHS', True)
+        pkgarchs = self.tc.d.getVar('PACKAGE_ARCHS', True).replace("-","_").split()
         for arch in os.listdir('%s/%s' % (self.repo_server.root_dir, image_pkgtype)):
             if arch in pkgarchs:
                 self.smart('channel -y --add {a} type=rpm-md baseurl={u}/{a}'.format(a=arch, u=deploy_url))



More information about the Openembedded-commits mailing list