summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhyokeun <hyokeun.jeon@samsung.com>2018-12-12 14:27:43 +0900
committerhyokeun <hyokeun.jeon@samsung.com>2018-12-12 14:27:43 +0900
commit3163c613265db19dc05f42db53bf83fa21baf78f (patch)
treef42f08897f70b89e2515ce7820195fb76b9fa029
parent5dfebd2c22008287a6e3b7eb0991e434f4110cf9 (diff)
downloadabs-3163c613265db19dc05f42db53bf83fa21baf78f.tar.gz
abs-3163c613265db19dc05f42db53bf83fa21baf78f.tar.bz2
abs-3163c613265db19dc05f42db53bf83fa21baf78f.zip
Accept global regex
Change-Id: I12ede5515e0b7a711037448ea573e7068b188446
-rwxr-xr-xabs4
1 files changed, 2 insertions, 2 deletions
diff --git a/abs b/abs
index 28363af..3c26c84 100755
--- 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):