diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/devtool/upgrade.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py index 279a65f62a..77b48f45a7 100644 --- a/scripts/lib/devtool/upgrade.py +++ b/scripts/lib/devtool/upgrade.py | |||
@@ -314,8 +314,13 @@ def upgrade(args, config, basepath, workspace): | |||
314 | srctree = standard.get_default_srctree(config, pn) | 314 | srctree = standard.get_default_srctree(config, pn) |
315 | 315 | ||
316 | standard._check_compatible_recipe(pn, rd) | 316 | standard._check_compatible_recipe(pn, rd) |
317 | if rd.getVar('PV', True) == args.version and rd.getVar('SRCREV', True) == args.srcrev: | 317 | old_srcrev = rd.getVar('SRCREV', True) |
318 | raise DevtoolError("Current and upgrade versions are the same version" % version) | 318 | if old_srcrev == 'INVALID': |
319 | old_srcrev = None | ||
320 | if old_srcrev and not args.srcrev: | ||
321 | raise DevtoolError("Recipe specifies a SRCREV value; you must specify a new one when upgrading") | ||
322 | if rd.getVar('PV', True) == args.version and old_srcrev == args.srcrev: | ||
323 | raise DevtoolError("Current and upgrade versions are the same version") | ||
319 | 324 | ||
320 | rf = None | 325 | rf = None |
321 | try: | 326 | try: |