summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2020-11-12 11:51:14 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2020-11-17 17:13:16 +0100
commit52e6902dee88cfeb9d666acbc8038146239125a8 (patch)
treec7a419cb9d0c8ad5cb1cf67635693d774add0588
parenta4654e323fc45985e61e6bc4c30618db56fe142b (diff)
uprev-srcrev: change fetch policy to fetch from remote repo
Force BB_SRCREV_POLICY to 'clear'. Thus the fetcher queries the remote git repo for the latest HEAD and does not rely on the copy in the local download directory. With this, we can change CI to run uprev-srcrev before building the images if we want to build latest HEAD of our components rather than using AUTOREV through use-head-next. This prevents that a push to the repos during a build might cause build errors. Related-to: AUT-528 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
-rwxr-xr-xscripts/uprev-srcrev4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/uprev-srcrev b/scripts/uprev-srcrev
index dffb993..4e9511e 100755
--- a/scripts/uprev-srcrev
+++ b/scripts/uprev-srcrev
@@ -49,7 +49,9 @@ def uprev_recipe(args, env, recipe):
def uprev(args):
env = os.environ.copy()
- env['BB_SRCREV_POLICY'] = "cache"
+ # make sure that we query the remote repo as we execute the script, not
+ # the clone we have in the local download.
+ env['BB_SRCREV_POLICY'] = "clear"
for recipe in recipes:
logger.info('Processing recipe {}'.format(recipe))
uprev_recipe(args, env, recipe)