Skip to content

Commit 5de8bc5

Browse files
committed
fix: add last package from apt cache output
1 parent 44d6a59 commit 5de8bc5

File tree

1 file changed

+7
-0
lines changed
  • appimagebuilder/builder/deploy/apt

1 file changed

+7
-0
lines changed

appimagebuilder/builder/deploy/apt/venv.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,5 +264,12 @@ def search_packages(self, names):
264264
# empty lines indicate the end of a package description block
265265
if not line and pkg_name:
266266
packages.append(Package(pkg_name, pkg_version, pkg_arch))
267+
pkg_name = None
268+
pkg_arch = None
269+
pkg_version = None
270+
271+
# empty lines indicate the end of a package description block
272+
if pkg_name:
273+
packages.append(Package(pkg_name, pkg_version, pkg_arch))
267274

268275
return packages

0 commit comments

Comments
 (0)