From a1c7412ffc7aee27dc8c691b9f355d99e1f62fc4 Mon Sep 17 00:00:00 2001 From: Pavel Moravec Date: Mon, 6 Nov 2023 18:59:05 +0100 Subject: [PATCH] [package_manager] Remove unused method pkg_nvra Resolves: #3408 Signed-off-by: Pavel Moravec --- sos/policies/package_managers/__init__.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/sos/policies/package_managers/__init__.py b/sos/policies/package_managers/__init__.py index 9b95e95d25..6956056bf0 100644 --- a/sos/policies/package_managers/__init__.py +++ b/sos/policies/package_managers/__init__.py @@ -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