Skip to content

Commit

Permalink
Add "N" to the version model
Browse files Browse the repository at this point in the history
Fedora's bodhi just added a "EPEL-8N" release that has
epel8-next-updates and epel8-next-updates-testing. This is to build
against CentOS stream in those cases where normal EPEL packages are no
longer compatible due to stream changes. The bodhi module doesn't
understand the 'N' here and can't figure out the version. If we add it
into the model it's fine. :)

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
  • Loading branch information
nirik authored and mattiaverga committed Sep 12, 2021
1 parent f31712c commit 89bfbfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bodhi/server/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ class Release(Base):
composed_by_bodhi = Column(Boolean, default=True)
create_automatic_updates = Column(Boolean, default=False)

_version_int_regex = re.compile(r'\D+(\d+)[CMF]?$')
_version_int_regex = re.compile(r'\D+(\d+)[CMFN]?$')

package_manager = Column(PackageManager.db_type(), default=PackageManager.unspecified)
testing_repository = Column(UnicodeText, nullable=True)
Expand Down
1 change: 1 addition & 0 deletions news/PR4222.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added support for release names ending with "N" such as EPEL next

0 comments on commit 89bfbfe

Please sign in to comment.