Skip to content

Commit

Permalink
[package_manager] Remove unused method pkg_nvra
Browse files Browse the repository at this point in the history
Resolves: #3408

Signed-off-by: Pavel Moravec <[email protected]>
  • Loading branch information
pmoravec authored and TurboTurtle committed Nov 7, 2023
1 parent ae9df4e commit bf8af08
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions sos/policies/package_managers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,20 +206,6 @@ def pkg_version(self, pkg):
return self.packages[pkg]
return None

def pkg_nvra(self, pkg):
"""Get the name, version, release, and architecture for a package
:param pkg: The name of the package
:type pkg: ``str``
:returns: name, version, release, and arch of the package
:rtype: ``tuple``
"""
fields = pkg.split("-")
version, release, arch = fields[-3:]
name = "-".join(fields[:-3])
return (name, version, release, arch)

def all_files(self):
"""
Get a list of files known by the package manager
Expand Down

0 comments on commit bf8af08

Please sign in to comment.