diff options
Diffstat (limited to 'scripts/lib/devtool/upgrade.py')
| -rw-r--r-- | scripts/lib/devtool/upgrade.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py index 073002ba49..441dd35bbd 100644 --- a/scripts/lib/devtool/upgrade.py +++ b/scripts/lib/devtool/upgrade.py | |||
| @@ -251,8 +251,15 @@ def _extract_new_source(newpv, srctree, no_patch, srcrev, srcbranch, branch, kee | |||
| 251 | _copy_source_code(tmpsrctree, srctree) | 251 | _copy_source_code(tmpsrctree, srctree) |
| 252 | 252 | ||
| 253 | (stdout,_) = __run('git ls-files --modified --others --exclude-standard') | 253 | (stdout,_) = __run('git ls-files --modified --others --exclude-standard') |
| 254 | for f in stdout.splitlines(): | 254 | filelist = stdout.splitlines() |
| 255 | __run('git add -A "%s"' % f) | 255 | pbar = bb.ui.knotty.BBProgress('Adding changed files', len(filelist)) |
| 256 | pbar.start() | ||
| 257 | batchsize = 100 | ||
| 258 | for i in range(0, len(filelist), batchsize): | ||
| 259 | batch = filelist[i:i+batchsize] | ||
| 260 | __run('git add -A %s' % ' '.join(['"%s"' % item for item in batch])) | ||
| 261 | pbar.update(i) | ||
| 262 | pbar.finish() | ||
| 256 | 263 | ||
| 257 | useroptions = [] | 264 | useroptions = [] |
| 258 | oe.patch.GitApplyTree.gitCommandUserOptions(useroptions, d=rd) | 265 | oe.patch.GitApplyTree.gitCommandUserOptions(useroptions, d=rd) |
