Skip to content

Commit

Permalink
Fix tox
Browse files Browse the repository at this point in the history
  • Loading branch information
sergio-costas committed Oct 18, 2023
1 parent 586250e commit 7ae5740
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions snapcraft/linters/library_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

"""Library linter implementation."""
import glob
import os
import subprocess
from pathlib import Path
from typing import List, Set
Expand Down Expand Up @@ -109,7 +107,11 @@ def _find_deb_package(self, library_name: str) -> Optional[str]:
if path.name == library_name:
try:
output = subprocess.run(
["dpkg", "-S", path.absolute().as_posix()], check=True, stdout=subprocess.PIPE
["dpkg",
"-S",
path.absolute().as_posix()],
check=True,
stdout=subprocess.PIPE
)
except subprocess.CalledProcessError:
# If the specified file doesn't belong to any package, the
Expand Down

0 comments on commit 7ae5740

Please sign in to comment.