From 3629c76befb02a03bdbdf3a31d26dc6ec24c5466 Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Sun, 4 Aug 2024 18:16:53 +0300 Subject: [PATCH] i386 generator --- get_depend_tree.py | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/get_depend_tree.py b/get_depend_tree.py index df8610a..110e5eb 100755 --- a/get_depend_tree.py +++ b/get_depend_tree.py @@ -25,13 +25,19 @@ def dependencies(cache, pkg, deps, key="Depends"): pkgname = sys.argv[1] c = apt.Cache() -pkg = c[pkgname] -deps = set() +try: + pkg = c[pkgname] -deps = dependencies(c, pkg, deps, "Depends") -print(" ".join(deps)) + print("Parsing dep tree for: " + pkgname) -preDeps = set() -preDeps = dependencies(c, pkg, preDeps, "PreDepends") -print(" ".join(preDeps)) + deps = set() + + deps = dependencies(c, pkg, deps, "Depends") + print(" ".join(deps)) + + preDeps = set() + preDeps = dependencies(c, pkg, preDeps, "PreDepends") + print(" ".join(preDeps)) +except: + pass