diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2017-05-15 22:43:20 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2017-05-15 22:43:20 -0400 |
commit | 022af57cd05b02ceb3c0b73a5389713f8d7857fb (patch) | |
tree | dfc66ef1ff1edf527a039a238af7026e2aeea6d3 | |
parent | 36dc9911e33f2755e36a390b9ac7e743df762a33 (diff) | |
download | website-022af57cd05b02ceb3c0b73a5389713f8d7857fb.tar.gz |
Fix logic checking for tarball releasesv2017-05-15-01
We wrongly announced 3.18.53 because of a logic fail that bypassed the
checks entirely.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-x | plugins/releases.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/releases.py b/plugins/releases.py index ec1b02d..c4eee0a 100755 --- a/plugins/releases.py +++ b/plugins/releases.py @@ -613,7 +613,7 @@ class KernelReleases(): diffview = None # if not -rc kernels, verify that patch, changelog and incremental patch exist - if not release.find('-rc'): + if release.find('-rc') < 0: if patch and not self.check_url_exists(patch): patch = None if changelog and not self.check_url_exists(changelog): @@ -645,7 +645,7 @@ class KernelReleases(): def _check_tarball_by_tagname(self, tagname): # Only check those starting with "v" - if tagname[0] == 'v' and not tagname.find('-rc'): + if tagname[0] == 'v' and tagname.find('-rc') < 0: # Ignore this check for -rc and next-YYYYMMDD kernels source = self._get_source_path_by_version(tagname[1:]) |