Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use hash to know if package was already dealt with

  • Loading branch information...
commit 04a7aec36f71cb6b874c059a006db3d05f91f6b7 1 parent 95f1583
@jcdubacq authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 bin/apt-tree
View
8 bin/apt-tree
@@ -173,9 +173,11 @@ def main():
else:
for deppkg,depver,depnum in subclause:
markNonEvident(deppkg,pkg.name)
+ forget={}
if xmanual==1:
for pkgname in manual:
if manual[pkgname]:
+ forget[pkgname]=True
if pkgname in installed:
if signal==1:
print pkgname + "+"
@@ -185,13 +187,15 @@ def main():
print pkgname + "-"
if xunneeded==1:
for pkgname in evident:
- if (pkgname in manual) and (manual[pkgname]):
+ if (pkgname in forget):
continue
if pkgname not in installed:
+ forget[pkgname]=True
print pkgname + "-"
for pkgname in nonEvident:
- if (pkgname in manual and manual[pkgname]) or (pkgname in evident):
+ if (pkgname in forget):
continue
+ forget[pkgname]=True
if pkgname in installed:
if xindirect==1:
print pkgname
Please sign in to comment.
Something went wrong with that request. Please try again.