From: Petr Štetiar Date: Sat, 12 Oct 2024 08:03:30 +0000 (+0000) Subject: phase1,phase2: GitPoller: fix deprecated API warning for pollinterval X-Git-Tag: v20^0 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3915bd80cec149897f37530eeaba366aa87e2784;p=buildbot.git phase1,phase2: GitPoller: fix deprecated API warning for pollinterval Fixes following warning: gitpoller.py:103: buildbot.warnings.DeprecatedApiWarning: [3.11.3 and later] pollinterval has been deprecated: please use pollInterval Signed-off-by: Petr Štetiar --- diff --git a/phase1/master.cfg b/phase1/master.cfg index 3203d9d..f869dfc 100644 --- a/phase1/master.cfg +++ b/phase1/master.cfg @@ -368,7 +368,7 @@ c["change_source"].append( workdir=work_dir + "/work.git", branches=branchNames, pollAtLaunch=True, - pollinterval=300, + pollInterval=300, ) ) diff --git a/phase2/master.cfg b/phase2/master.cfg index 6dd2c46..a3e7417 100644 --- a/phase2/master.cfg +++ b/phase2/master.cfg @@ -179,7 +179,7 @@ def parse_feed_entry(line): url = parts[2].strip().split(';') branch = url[1] if len(url) > 1 else 'main' feedbranches[url[0]] = branch - c['change_source'].append(GitPoller(url[0], branch=branch, workdir='%s/%s.git' %(os.getcwd(), parts[1]), pollinterval=300)) + c['change_source'].append(GitPoller(url[0], branch=branch, workdir='%s/%s.git' %(os.getcwd(), parts[1]), pollInterval=300)) make = subprocess.Popen(['make', '--no-print-directory', '-C', work_dir+'/source.git/target/sdk/', 'val.BASE_FEED'], env = dict(os.environ, TOPDIR=work_dir+'/source.git'), stdout = subprocess.PIPE)