From 5ec9e55dd17d905bda8c30d7b7e1cf268e7c540a Mon Sep 17 00:00:00 2001 From: CloudBuilder Date: Thu, 27 Jun 2019 09:00:06 +0000 Subject: [PATCH] Imported 2.598 No reason for CPC update specified. --- debian/changelog | 7 +++++++ minimize-manual | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 310e1ced..3b89bf3f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +livecd-rootfs (2.598) eoan; urgency=medium + + * Change minimize-manual to read package section from version instead + of package objects, fixing compatibility with (python-)apt 1.9.0 + + -- Julian Andres Klode Mon, 24 Jun 2019 17:55:03 +0200 + livecd-rootfs (2.597) eoan; urgency=medium * Install s390-tools-zkey into the installer layer for zkey support in diff --git a/minimize-manual b/minimize-manual index c8e3c166..5dcd9d30 100755 --- a/minimize-manual +++ b/minimize-manual @@ -11,10 +11,11 @@ import apt def is_root(pkg): """Check if the package is a root package (manually inst. meta)""" + section = pkg.candidate.section if pkg.candidate else "" return (pkg.is_installed and not pkg.is_auto_installed and - (pkg.section == "metapackages" or - pkg.section.endswith("/metapackages"))) + (section == "metapackages" or + section.endswith("/metapackages"))) def main():