Skip to content

Commit

Permalink
Merge pull request #365 from bundlewrap/fix-pkg-openbsd
Browse files Browse the repository at this point in the history
pkg_openbsd: Fix handling of empty output from "pkg_info"
  • Loading branch information
trehn committed Sep 21, 2017
2 parents 78eaa3e + 8295af0 commit 23d28e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundlewrap/items/pkg_openbsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def pkg_installed(node, pkgname):
"pkg_info | cut -f 1 -d ' '",
may_fail=True,
)
for line in result.stdout.decode('utf-8').strip().split("\n"):
for line in result.stdout.decode('utf-8').strip().splitlines():
installed_package, installed_version = PKGSPEC_REGEX.match(line).groups()
if installed_package == pkgname:
return installed_version
Expand Down

0 comments on commit 23d28e7

Please sign in to comment.