[buildbot] phase1,phase2: GitPoller: fix deprecated API warning for pollinterval
LEDE Commits
lede-commits at lists.infradead.org
Sat Oct 12 02:18:37 PDT 2024
ynezz pushed a commit to buildbot.git, branch main:
https://git.openwrt.org/3915bd80cec149897f37530eeaba366aa87e2784
commit 3915bd80cec149897f37530eeaba366aa87e2784
Author: Petr Štetiar <ynezz at true.cz>
AuthorDate: Sat Oct 12 08:03:30 2024 +0000
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 <ynezz at true.cz>
---
phase1/master.cfg | 2 +-
phase2/master.cfg | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
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)
More information about the lede-commits
mailing list