summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunghyun Kim <jh0822.kim@samsung.com>2016-08-23 10:30:57 (GMT)
committerJunghyun Kim <jh0822.kim@samsung.com>2016-08-23 10:30:57 (GMT)
commit1868d5482270bb459b20d58a4749da4525064256 (patch)
tree7c0c5a594e09572fde4d097e2571d3a4a6856cbc
parentc5daa3aaf170968d9e8d436998a0a13dfd7f0c15 (diff)
downloadpattern-tools-tizen.zip
pattern-tools-tizen.tar.gz
pattern-tools-tizen.tar.bz2
Sort file names using sorted()HEADtizen_5.5.m2_releasetizen_4.0.m2_releasetizen_4.0.m1_releasetizen_4.0.IoT.p2_releasetizen_4.0.IoT.p1_releasesubmit/tizen_unified/20170308.100415submit/tizen_5.5/20191031.000008submit/tizen_5.0/20181101.000007submit/tizen_4.0/20170828.100007submit/tizen_4.0/20170811.094300submit/tizen_3.0_wearable/20161015.000005submit/tizen_3.0_tv/20161015.000004submit/tizen_3.0_mobile/20161015.000005submit/tizen_3.0_ivi/20161010.000005submit/tizen_3.0_common/20161104.104000submit/tizen_3.0.m2/20170104.093754submit/tizen/20160921.004331submit/tizen/20160913.071022submit/tizen/20160831.230944accepted/tizen/wearable/20160921.232910accepted/tizen/unified/20170309.040157accepted/tizen/tv/20160921.232923accepted/tizen/mobile/20160921.232916accepted/tizen/ivi/20160921.232930accepted/tizen/common/20160913.170441accepted/tizen/common/20160901.143250accepted/tizen/5.5/unified/20191031.013026accepted/tizen/5.0/unified/20181102.030345accepted/tizen/4.0/unified/20170828.221718accepted/tizen/4.0/unified/20170816.011437accepted/tizen/3.0/wearable/20161015.083941accepted/tizen/3.0/tv/20161016.005521accepted/tizen/3.0/mobile/20161015.033911accepted/tizen/3.0/ivi/20161011.055438accepted/tizen/3.0/common/20161114.111428accepted/tizen/3.0.m2/wearable/20170105.025338accepted/tizen/3.0.m2/tv/20170105.025241accepted/tizen/3.0.m2/mobile/20170105.025131tizen_5.5tizen_5.0tizen_4.0_tvtizen_4.0tizen_3.0_tvtizen_3.0.m2tizen_3.0tizenaccepted/tizen_wearableaccepted/tizen_unifiedaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_iviaccepted/tizen_commonaccepted/tizen_5.5_unifiedaccepted/tizen_5.0_unifiedaccepted/tizen_4.0_unifiedaccepted/tizen_3.0_wearableaccepted/tizen_3.0_tvaccepted/tizen_3.0_mobileaccepted/tizen_3.0_iviaccepted/tizen_3.0_commonaccepted/tizen_3.0.m2_wearableaccepted/tizen_3.0.m2_tvaccepted/tizen_3.0.m2_mobilerefs/changes/40/85040/1
- PROBLEM python's os.listdir() returns a list of files without sorting. In this case, the list can be different across machines. As a result, OBS can recognize build results are different everytime even though the source is unchanged. - SOLUTION Use sorted(os.listdir()) instead of os.listdir(). Change-Id: Idf3ba1e51fb790269dafb651347ff84dbda89a10 Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
-rwxr-xr-xscripts/merge-patterns.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/merge-patterns.py b/scripts/merge-patterns.py
index f6b9068..d499404 100755
--- a/scripts/merge-patterns.py
+++ b/scripts/merge-patterns.py
@@ -18,7 +18,7 @@ def create_patterns(arch='i586', split=False, patterns_dir='patterns', output=".
NSMAP = {None : pattern_ns, "rpm": rpm_ns}
count = 0
- for f in os.listdir(patterns_dir):
+ for f in sorted(os.listdir(patterns_dir)):
if not f.endswith('.yaml'):
continue
count = count + 1