PBR

package_name ignored if getting version from git

Bug #1758301 reported by Stephen Finucane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PBR
Confirmed
Medium
Unassigned

Bug Description

I'm using 'pbr.packaging.get_version()' to get the version of a package that is not installed. Because the package is not installed, pbr falls back to git to get the version numbers. However, it seems to fail to check the 'package_name' argument passed to this.

    >>> from pbr import packaging
    >>> packaging.get_version('openstackdocstheme')
    '1.20.0'
    >>> packaging.get_version('nova')
    '1.20.0'
    >>> packaging.get_version('testssdfsdfdsfs')
    '1.20.0'

Ben Nemec (bnemec)
Changed in pbr:
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.