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 committed May 21, 2021
1 parent 707998a commit bf31b93
Showing 1 changed file with 1 addition 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

0 comments on commit bf31b93

Please sign in to comment.