phase1,phase2: GitPoller: fix deprecated API warning for pollinterval v20
authorPetr Štetiar <ynezz@true.cz>
Sat, 12 Oct 2024 08:03:30 +0000 (08:03 +0000)
committerPetr Štetiar <ynezz@true.cz>
Sat, 12 Oct 2024 08:03:30 +0000 (08:03 +0000)
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>
phase1/master.cfg
phase2/master.cfg

index 3203d9da8fc75606737db4e66234c9326094c5ea..f869dfc5337a30afaa0938fe3d662d6a36e2a886 100644 (file)
@@ -368,7 +368,7 @@ c["change_source"].append(
         workdir=work_dir + "/work.git",
         branches=branchNames,
         pollAtLaunch=True,
-        pollinterval=300,
+        pollInterval=300,
     )
 )
 
index 6dd2c469d0b891691a01a9855a8b617388206617..a3e7417bc39dd2ce77b0e16cece177d110fc3bea 100644 (file)
@@ -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)