phase2: fix obsolete assumption about feed methods
authorPetr Štetiar <ynezz@true.cz>
Wed, 23 Feb 2022 17:23:43 +0000 (18:23 +0100)
committerPetr Štetiar <ynezz@true.cz>
Wed, 23 Feb 2022 17:23:43 +0000 (18:23 +0100)
In commit 7fae1e5677e9 ("feeds: use git-src-full to allow Git
versioning") there was `src-git` method of shallow clone replaced with
`src-git-full` and this has caused issue with GitPoller configuration as
it only assumed, that only `src-git` method is going to be used for feed
updates. Fix currently stuck buildbot master by allowing usage of both
Git update methods.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
phase2/master.cfg

index 7742ad6c1e826646fe341a3bd20438c1ca9825c3..028182852c2dd7eb5b6985f3c89e3fba9a4a8e6e 100644 (file)
@@ -199,7 +199,7 @@ c['change_source'] = []
 
 def parse_feed_entry(line):
        parts = line.strip().split()
-       if parts[0] == "src-git":
+       if parts[0].startswith("src-git"):
                feeds.append(parts)
                url = parts[2].strip().split(';')
                branch = url[1] if len(url) > 1 else 'master'