#96 /{branch}/srcpkg/{name} returns incorrect data
Closed: Fixed 4 years ago by pingou. Opened 4 years ago by jlanda.

More background: https://pagure.io/pagure-dist-git/issue/85

I think that the real problem is on https://pagure.io/mdapi/blob/master/f/mdapi/db.py#_63-76:

GET_PACKAGE_BY_SRC = """SELECT pkgKey,
                               pkgId,
                               name,
                               rpm_sourcerpm,
                               epoch,
                               version,
                               release,
                               arch,
                               summary,
                               description,
                               url
                        FROM packages
                        WHERE rpm_sourcerpm LIKE ?
                        ORDER BY epoch DESC, version DESC, release DESC"""

WHERE LIKE ? is matching librealsense1 instead of librealsense. We could try to add a dash after the provided package name


Does this also break Bugzilla descriptions? The one for light uses the one from lightsoff.

Metadata Update from @pingou:
- Issue assigned to pingou

4 years ago

mdapi is easy enough to play with, let's see if we can fix this

Metadata Update from @pingou:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

4 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #97 Merged 4 years ago