summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-11-23 09:39:39 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-12 08:42:29 +0000
commit3b4f65968ec87961e156995f95a501d1783fb630 (patch)
treeac1a5838e38a1f9d9456ad52a32315c620233ce9 /scripts/lib/devtool
parent61a7de097a1c6f8f98455e9f738da15a3035caa1 (diff)
downloadpoky-3b4f65968ec87961e156995f95a501d1783fb630.tar.gz
devtool: upgrade: fix removing other recipes from workspace on reset
If you did a "devtool add" followed by "devtool upgrade" and then did a "devtool reset" on the recipe you upgraded, the first recipe would also be deleted from the workspace - this was because we were erroneously adding the entire "recipes" subdirectory and its contents to be tracked for removal on reset. Remove the unnecessary call to os.path.dirname() that caused this. (From OE-Core master rev: 65354e066f87df7d3138adceb22d6a05d1685904) (From OE-Core rev: c44d41b0dec7457c4347a00b21d8b5bd24a9b887) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool')
-rw-r--r--scripts/lib/devtool/standard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index c5c647b2f3..d9b624d4c7 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -456,7 +456,7 @@ def _add_md5(config, recipename, filename):
456 f.write('%s|%s|%s\n' % (recipename, os.path.relpath(fn, config.workspace_path), md5)) 456 f.write('%s|%s|%s\n' % (recipename, os.path.relpath(fn, config.workspace_path), md5))
457 457
458 if os.path.isdir(filename): 458 if os.path.isdir(filename):
459 for root, _, files in os.walk(os.path.dirname(filename)): 459 for root, _, files in os.walk(filename):
460 for f in files: 460 for f in files:
461 addfile(os.path.join(root, f)) 461 addfile(os.path.join(root, f))
462 else: 462 else: