|
|
@ -11,10 +11,11 @@ import apt
|
|
|
|
|
|
|
|
|
|
|
|
def is_root(pkg):
|
|
|
|
def is_root(pkg):
|
|
|
|
"""Check if the package is a root package (manually inst. meta)"""
|
|
|
|
"""Check if the package is a root package (manually inst. meta)"""
|
|
|
|
|
|
|
|
section = pkg.candidate.section if pkg.candidate else ""
|
|
|
|
return (pkg.is_installed and
|
|
|
|
return (pkg.is_installed and
|
|
|
|
not pkg.is_auto_installed and
|
|
|
|
not pkg.is_auto_installed and
|
|
|
|
(pkg.section == "metapackages" or
|
|
|
|
(section == "metapackages" or
|
|
|
|
pkg.section.endswith("/metapackages")))
|
|
|
|
section.endswith("/metapackages")))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
def main():
|
|
|
|