Accept global regex
authorhyokeun <hyokeun.jeon@samsung.com>
Wed, 12 Dec 2018 05:27:43 +0000 (14:27 +0900)
committerhyokeun <hyokeun.jeon@samsung.com>
Wed, 12 Dec 2018 05:27:43 +0000 (14:27 +0900)
Change-Id: I12ede5515e0b7a711037448ea573e7068b188446

abs

diff --git a/abs b/abs
index 28363af..3c26c84 100755 (executable)
--- a/abs
+++ b/abs
@@ -158,12 +158,12 @@ class _Rootstrap(object):
         cmdline = self.tizen + ' list rootstrap'
         ret = Executor().run(cmdline, show=False)
         for x in ret.splitlines():
-            if re.search('(%s)-(2.4|3.0|4.0|5.0|5.5)-(device|emulator|device64|emulator64).core.*' % rs_prefix, x):
+            if re.search('(%s)-([0-9.]*)-(device.*|emulator.*).core.*' % rs_prefix, x):
                 if self.rootstrap_list == None:
                     self.rootstrap_list = []
                 self.rootstrap_list.append(x.split(' ')[0])
             else:
-                print 'No search result for %s' % '(%s)-(2.4|3.0|4.0|5.0|5.5)-(device|emulator|device64|emulator64).core.*' % rs_prefix
+                print 'No search result for %s' % '(%s)-([0-9.]*)-(device.*|emulator.*).core.*' % rs_prefix
         return self.rootstrap_list
 
     def check_rootstrap(self, rootstrap, show=True):