]> code.ossystems Code Review - openembedded-core.git/commitdiff
devtool: upgrade: remove erroneous error when not renaming recipe
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Sun, 22 Nov 2015 21:06:50 +0000 (10:06 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 1 Dec 2015 21:30:54 +0000 (21:30 +0000)
If we're upgrading a git recipe the recipe file usually won't need
renaming; for some unknown reason we were throwing an error here which
isn't correct.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/devtool/upgrade.py

index 14eff665b6429a87f1919498144118fd34c58845..8851a6edbed91850c3aa11efd6ecfd2aab79c6af 100644 (file)
@@ -117,7 +117,6 @@ def _rename_recipe_file(bpn, oldpv, newpv, path):
         recipe = "%s_git.bb" % bpn
         if os.path.isfile(os.path.join(path, recipe)):
             newrecipe = recipe
-            raise DevtoolError("Original recipe not found on workspace")
     return os.path.join(path, newrecipe)
 
 def _rename_recipe_files(bpn, oldpv, newpv, path):