Skip to content

Commit

Permalink
phase1,phase2: GitPoller: fix deprecated API warning for pollinterval
Browse files Browse the repository at this point in the history
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@true.cz>
  • Loading branch information
ynezz committed Oct 12, 2024
1 parent 49c07ef commit 3915bd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phase1/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ c["change_source"].append(
workdir=work_dir + "/work.git",
branches=branchNames,
pollAtLaunch=True,
pollinterval=300,
pollInterval=300,
)
)

Expand Down
2 changes: 1 addition & 1 deletion phase2/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3915bd8

Please sign in to comment.