diff options
Diffstat (limited to 'scripts/lib/devtool')
-rw-r--r-- | scripts/lib/devtool/standard.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 18847cf4ee..d6186b9ece 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py | |||
@@ -837,7 +837,7 @@ def _get_patchset_revs(args, srctree, recipe_path): | |||
837 | stdout, _ = bb.process.run('git rev-list --reverse %s..HEAD' % | 837 | stdout, _ = bb.process.run('git rev-list --reverse %s..HEAD' % |
838 | initial_rev, cwd=srctree) | 838 | initial_rev, cwd=srctree) |
839 | newcommits = stdout.split() | 839 | newcommits = stdout.split() |
840 | for i in xrange(min(len(commits), len(newcommits))): | 840 | for i in range(min(len(commits), len(newcommits))): |
841 | if newcommits[i] == commits[i]: | 841 | if newcommits[i] == commits[i]: |
842 | update_rev = commits[i] | 842 | update_rev = commits[i] |
843 | 843 | ||
@@ -863,7 +863,7 @@ def _remove_file_entries(srcuri, filelist): | |||
863 | entries = [] | 863 | entries = [] |
864 | for fname in filelist: | 864 | for fname in filelist: |
865 | basename = os.path.basename(fname) | 865 | basename = os.path.basename(fname) |
866 | for i in xrange(len(srcuri)): | 866 | for i in range(len(srcuri)): |
867 | if (srcuri[i].startswith('file://') and | 867 | if (srcuri[i].startswith('file://') and |
868 | os.path.basename(srcuri[i].split(';')[0]) == basename): | 868 | os.path.basename(srcuri[i].split(';')[0]) == basename): |
869 | entries.append(srcuri[i]) | 869 | entries.append(srcuri[i]) |